Skip to content
Snippets Groups Projects
Commit 12c690b5 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2048] Reduce prebuffering in pulseaudio (which affect incomming calls' plbck)

parent 0728e685
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,7 @@ AudioStream::createStream (pa_context* c) ...@@ -186,7 +186,7 @@ AudioStream::createStream (pa_context* c)
if (_streamType == PLAYBACK_STREAM) { if (_streamType == PLAYBACK_STREAM) {
attributes->maxlength = 32000; attributes->maxlength = 32000;
attributes->tlength = 8192; attributes->tlength = 8192;
attributes->prebuf = 4096; attributes->prebuf = 2048;
attributes->minreq = 512; attributes->minreq = 512;
attributes->fragsize = (uint32_t) -1; attributes->fragsize = (uint32_t) -1;
pa_stream_connect_playback( s , NULL , attributes, PA_STREAM_INTERPOLATE_TIMING, &_volume, NULL); pa_stream_connect_playback( s , NULL , attributes, PA_STREAM_INTERPOLATE_TIMING, &_volume, NULL);
...@@ -198,7 +198,7 @@ AudioStream::createStream (pa_context* c) ...@@ -198,7 +198,7 @@ AudioStream::createStream (pa_context* c)
attributes->maxlength = 16000; attributes->maxlength = 16000;
attributes->tlength = 8192; attributes->tlength = 8192;
attributes->prebuf = 4096; attributes->prebuf = 2048;
attributes->minreq = 512; attributes->minreq = 512;
attributes->fragsize = (uint32_t) -1; attributes->fragsize = (uint32_t) -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment