Update pulse capture ring buffer in 25ms chunks

This commit is contained in:
Chris Robinson
2009-12-24 04:08:04 -08:00
parent 6ea7b43c90
commit accea119d9
+2 -1
View File
@@ -628,7 +628,8 @@ static ALCboolean pulse_open_capture(ALCdevice *device, const ALCchar *device_na
data->attr.prebuf = -1;
data->attr.maxlength = -1;
data->attr.tlength = -1;
data->attr.fragsize = data->frame_size * data->samples / 2;
data->attr.fragsize = min(data->frame_size * data->samples / 2,
25 * device->Frequency / 1000);
data->stream_name = "Capture Stream";
data->spec.rate = device->Frequency;