diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-03 00:54:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-03 00:54:50 +0000 |
commit | 76f849f35e0f0e3291d76229db8891b9a50603cb (patch) | |
tree | d1645ce0b8f634cce44a3230a4dd368c7d620a3c /src/conversation | |
parent | f3c7f9aa97c759ff56dc65c887b87be09da877c7 (diff) | |
download | gnunet-76f849f35e0f0e3291d76229db8891b9a50603cb.tar.gz gnunet-76f849f35e0f0e3291d76229db8891b9a50603cb.zip |
-trying to play a bit with the options
Diffstat (limited to 'src/conversation')
-rw-r--r-- | src/conversation/gnunet-helper-audio-playback.c | 6 | ||||
-rw-r--r-- | src/conversation/gnunet-helper-audio-record.c | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/conversation/gnunet-helper-audio-playback.c b/src/conversation/gnunet-helper-audio-playback.c index 6b2a3df6d..c0ef217cd 100644 --- a/src/conversation/gnunet-helper-audio-playback.c +++ b/src/conversation/gnunet-helper-audio-playback.c | |||
@@ -221,8 +221,10 @@ context_state_callback (pa_context * c, | |||
221 | &stream_write_callback, | 221 | &stream_write_callback, |
222 | NULL); | 222 | NULL); |
223 | if ((p = | 223 | if ((p = |
224 | pa_stream_connect_playback (stream_out, NULL, NULL, 0, NULL, | 224 | pa_stream_connect_playback (stream_out, NULL, |
225 | NULL)) < 0) | 225 | NULL, |
226 | PA_STREAM_ADJUST_LATENCY | PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_AUTO_TIMING_UPDATE, | ||
227 | NULL, NULL)) < 0) | ||
226 | { | 228 | { |
227 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 229 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
228 | _("pa_stream_connect_playback() failed: %s\n"), | 230 | _("pa_stream_connect_playback() failed: %s\n"), |
diff --git a/src/conversation/gnunet-helper-audio-record.c b/src/conversation/gnunet-helper-audio-record.c index b3828498f..54c9b7909 100644 --- a/src/conversation/gnunet-helper-audio-record.c +++ b/src/conversation/gnunet-helper-audio-record.c | |||
@@ -375,7 +375,7 @@ context_state_callback (pa_context * c, | |||
375 | na.maxlength = UINT32_MAX; | 375 | na.maxlength = UINT32_MAX; |
376 | na.fragsize = pcm_length; | 376 | na.fragsize = pcm_length; |
377 | if ((r = pa_stream_connect_record (stream_in, NULL, &na, | 377 | if ((r = pa_stream_connect_record (stream_in, NULL, &na, |
378 | PA_STREAM_EARLY_REQUESTS)) < 0) | 378 | PA_STREAM_ADJUST_LATENCY)) < 0) |
379 | { | 379 | { |
380 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 380 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
381 | _("pa_stream_connect_record() failed: %s\n"), | 381 | _("pa_stream_connect_record() failed: %s\n"), |
@@ -469,6 +469,14 @@ opus_init () | |||
469 | channels, | 469 | channels, |
470 | OPUS_APPLICATION_VOIP, | 470 | OPUS_APPLICATION_VOIP, |
471 | &err); | 471 | &err); |
472 | opus_encoder_ctl (enc, | ||
473 | OPUS_SET_PACKET_LOSS_PERC(1)); | ||
474 | opus_encoder_ctl (enc, | ||
475 | OPUS_SET_COMPLEXITY(10)); | ||
476 | opus_encoder_ctl (enc, | ||
477 | OPUS_SET_INBAND_FEC(1)); | ||
478 | opus_encoder_ctl (enc, | ||
479 | OPUS_SET_SIGNAL (OPUS_SIGNAL_VOICE)); | ||
472 | } | 480 | } |
473 | 481 | ||
474 | 482 | ||