linux-pulseaudio: Fix the default req. buffer len

This changes the the requested buffer length to 25ms.
master
fryshorts 2014-10-06 08:35:56 +02:00 committed by jp9000
parent 54b1d7532b
commit d82f986ebd
1 changed files with 5 additions and 1 deletions

View File

@ -211,6 +211,10 @@ skip:
*
* We request the default format used by pulse here because the data will be
* converted and possibly re-sampled by obs anyway.
*
* For now we request a buffer length of 25ms although pulse seems to ignore
* this setting for monitor streams. For "real" input streams this should work
* fine though.
*/
static int_fast32_t pulse_start_recording(struct pulse_data *data)
{
@ -251,7 +255,7 @@ static int_fast32_t pulse_start_recording(struct pulse_data *data)
pulse_unlock();
pa_buffer_attr attr;
attr.fragsize = 25000;
attr.fragsize = pa_usec_to_bytes(25000, &spec);
attr.maxlength = (uint32_t) -1;
pa_stream_flags_t flags = PA_STREAM_ADJUST_LATENCY;