[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r36016 - gnunet/src/conversation
From: |
gnunet |
Subject: |
[GNUnet-SVN] r36016 - gnunet/src/conversation |
Date: |
Sun, 28 Jun 2015 15:05:52 +0200 |
Author: grothoff
Date: 2015-06-28 15:05:52 +0200 (Sun, 28 Jun 2015)
New Revision: 36016
Modified:
gnunet/src/conversation/gnunet-helper-audio-playback.c
Log:
-fix indent
Modified: gnunet/src/conversation/gnunet-helper-audio-playback.c
===================================================================
--- gnunet/src/conversation/gnunet-helper-audio-playback.c 2015-06-27
23:21:04 UTC (rev 36015)
+++ gnunet/src/conversation/gnunet-helper-audio-playback.c 2015-06-28
13:05:52 UTC (rev 36016)
@@ -137,9 +137,11 @@
GNUNET_NETWORK_STRUCT_END
-/*Process an Opus header and setup the opus decoder based on it.
- It takes several pointers for header values which are needed
- elsewhere in the code.*/
+/**
+ * Process an Opus header and setup the opus decoder based on it.
+ * It takes several pointers for header values which are needed
+ * elsewhere in the code.
+ */
static OpusDecoder *
process_header (ogg_packet *op)
{
@@ -163,7 +165,8 @@
if (header.channel_mapping != 0)
{
- fprintf (stderr, "This implementation does not support non-mono
streams\n");
+ fprintf (stderr,
+ "This implementation does not support non-mono streams\n");
return NULL;
}
@@ -170,12 +173,16 @@
dec = opus_decoder_create (SAMPLING_RATE, channels, &err);
if (OPUS_OK != err)
{
- fprintf (stderr, "Cannot create encoder: %s\n", opus_strerror (err));
+ fprintf (stderr,
+ "Cannot create encoder: %s\n",
+ opus_strerror (err));
return NULL;
}
- if (!dec)
+ if (! dec)
{
- fprintf (stderr, "Decoder initialization failed: %s\n", opus_strerror
(err));
+ fprintf (stderr,
+ "Decoder initialization failed: %s\n",
+ opus_strerror (err));
return NULL;
}
@@ -202,7 +209,8 @@
#ifdef DEBUG_DUMP_DECODED_OGG
-static size_t fwrite_le32(opus_int32 i32, FILE *file)
+static size_t
+fwrite_le32(opus_int32 i32, FILE *file)
{
unsigned char buf[4];
buf[0]=(unsigned char)(i32&0xFF);
@@ -212,7 +220,9 @@
return fwrite(buf,4,1,file);
}
-static size_t fwrite_le16(int i16, FILE *file)
+
+static size_t
+fwrite_le16(int i16, FILE *file)
{
unsigned char buf[2];
buf[0]=(unsigned char)(i16&0xFF);
@@ -220,7 +230,9 @@
return fwrite(buf,2,1,file);
}
-static int write_wav_header()
+
+static int
+write_wav_header()
{
int ret;
FILE *file = stdout;
@@ -245,6 +257,7 @@
#endif
+
static int64_t
audio_write (int64_t maxout)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r36016 - gnunet/src/conversation,
gnunet <=