Browse Source

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.
jp9000 11 years ago
parent
commit
89591843dc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      plugins/linux-pulseaudio/pulse-input.c

+ 3 - 0
plugins/linux-pulseaudio/pulse-input.c

@@ -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;