linux-pulseaudio: Use defaults for pa_buffer_attr

Although these values aren't used in capture mode, set these to the
default values just to be safe.
master
jp9000 2014-10-18 14:45:05 -07:00
parent d82f986ebd
commit 89591843dc
1 changed files with 3 additions and 0 deletions

View File

@ -257,6 +257,9 @@ static int_fast32_t pulse_start_recording(struct pulse_data *data)
pa_buffer_attr attr;
attr.fragsize = pa_usec_to_bytes(25000, &spec);
attr.maxlength = (uint32_t) -1;
attr.minreq = (uint32_t) -1;
attr.prebuf = (uint32_t) -1;
attr.tlength = (uint32_t) -1;
pa_stream_flags_t flags = PA_STREAM_ADJUST_LATENCY;