lol
1diff --git a/audio/paaudio.c b/audio/paaudio.c
2index fea6071..c1169d4 100644
3--- a/audio/paaudio.c
4+++ b/audio/paaudio.c
5@@ -608,6 +608,7 @@ static int qpa_init_in(HWVoiceIn *hw, struct audsettings *as, void *drv_opaque)
6 {
7 int error;
8 pa_sample_spec ss;
9+ pa_buffer_attr ba;
10 struct audsettings obt_as = *as;
11 PAVoiceIn *pa = (PAVoiceIn *) hw;
12 paaudio *g = pa->g = drv_opaque;
13@@ -616,6 +617,12 @@ static int qpa_init_in(HWVoiceIn *hw, struct audsettings *as, void *drv_opaque)
14 ss.channels = as->nchannels;
15 ss.rate = as->freq;
16
17+ ba.fragsize = pa_frame_size (&ss) * g->conf.samples;
18+ ba.maxlength = 5 * ba.fragsize;
19+ ba.tlength = -1;
20+ ba.prebuf = -1;
21+ ba.minreq = -1;
22+
23 obt_as.fmt = pa_to_audfmt (ss.format, &obt_as.endianness);
24
25 pa->stream = qpa_simple_new (
26@@ -625,7 +632,7 @@ static int qpa_init_in(HWVoiceIn *hw, struct audsettings *as, void *drv_opaque)
27 g->conf.source,
28 &ss,
29 NULL, /* channel map */
30- NULL, /* buffering attributes */
31+ &ba, /* buffering attributes */
32 &error
33 );
34 if (!pa->stream) {