gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r29811 - gnunet/src/conversation


From: gnunet
Subject: [GNUnet-SVN] r29811 - gnunet/src/conversation
Date: Thu, 3 Oct 2013 02:54:50 +0200

Author: grothoff
Date: 2013-10-03 02:54:50 +0200 (Thu, 03 Oct 2013)
New Revision: 29811

Modified:
   gnunet/src/conversation/gnunet-helper-audio-playback.c
   gnunet/src/conversation/gnunet-helper-audio-record.c
Log:
-trying to play a bit with the options

Modified: gnunet/src/conversation/gnunet-helper-audio-playback.c
===================================================================
--- gnunet/src/conversation/gnunet-helper-audio-playback.c      2013-10-03 
00:05:47 UTC (rev 29810)
+++ gnunet/src/conversation/gnunet-helper-audio-playback.c      2013-10-03 
00:54:50 UTC (rev 29811)
@@ -221,8 +221,10 @@
                                  &stream_write_callback,
                                  NULL);
     if ((p =
-        pa_stream_connect_playback (stream_out, NULL, NULL, 0, NULL,
-                                    NULL)) < 0)
+        pa_stream_connect_playback (stream_out, NULL, 
+                                    NULL,
+                                    PA_STREAM_ADJUST_LATENCY | 
PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_AUTO_TIMING_UPDATE,
+                                    NULL,  NULL)) < 0)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                  _("pa_stream_connect_playback() failed: %s\n"),

Modified: gnunet/src/conversation/gnunet-helper-audio-record.c
===================================================================
--- gnunet/src/conversation/gnunet-helper-audio-record.c        2013-10-03 
00:05:47 UTC (rev 29810)
+++ gnunet/src/conversation/gnunet-helper-audio-record.c        2013-10-03 
00:54:50 UTC (rev 29811)
@@ -375,7 +375,7 @@
     na.maxlength = UINT32_MAX;
     na.fragsize = pcm_length;
     if ((r = pa_stream_connect_record (stream_in, NULL, &na, 
-                                      PA_STREAM_EARLY_REQUESTS)) < 0)
+                                      PA_STREAM_ADJUST_LATENCY)) < 0)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                  _("pa_stream_connect_record() failed: %s\n"),
@@ -469,6 +469,14 @@
                             channels, 
                             OPUS_APPLICATION_VOIP,
                             &err);
+  opus_encoder_ctl (enc,
+                   OPUS_SET_PACKET_LOSS_PERC(1));
+  opus_encoder_ctl (enc,
+                   OPUS_SET_COMPLEXITY(10));
+  opus_encoder_ctl (enc,
+                   OPUS_SET_INBAND_FEC(1));
+  opus_encoder_ctl (enc,
+                   OPUS_SET_SIGNAL (OPUS_SIGNAL_VOICE));
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]