aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-helper-audio-record.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-03 00:54:50 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-03 00:54:50 +0000
commit76f849f35e0f0e3291d76229db8891b9a50603cb (patch)
treed1645ce0b8f634cce44a3230a4dd368c7d620a3c /src/conversation/gnunet-helper-audio-record.c
parentf3c7f9aa97c759ff56dc65c887b87be09da877c7 (diff)
downloadgnunet-76f849f35e0f0e3291d76229db8891b9a50603cb.tar.gz
gnunet-76f849f35e0f0e3291d76229db8891b9a50603cb.zip
-trying to play a bit with the options
Diffstat (limited to 'src/conversation/gnunet-helper-audio-record.c')
-rw-r--r--src/conversation/gnunet-helper-audio-record.c10
1 files changed, 9 insertions, 1 deletions
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