From 0f0141b9dddfc97b4dbb8ba394fc5d26bb8e2b1a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 4 Mar 2012 09:24:07 -0800 Subject: Set prebuf to 0 since we're handling the stream start manually --- Alc/backends/pulseaudio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Alc/backends/pulseaudio.c') diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c index a98c92d2..f7fc86ba 100644 --- a/Alc/backends/pulseaudio.c +++ b/Alc/backends/pulseaudio.c @@ -1032,7 +1032,7 @@ static ALCboolean pulse_reset_playback(ALCdevice *device) SetDefaultWFXChannelOrder(device); data->attr.fragsize = -1; - data->attr.prebuf = -1; + data->attr.prebuf = 0; data->attr.minreq = device->UpdateSize * pa_frame_size(&data->spec); data->attr.tlength = data->attr.minreq * maxu(device->NumUpdates, 2); data->attr.maxlength = -1; @@ -1057,6 +1057,7 @@ static ALCboolean pulse_reset_playback(ALCdevice *device) data->attr.minreq = (ALuint64)device->UpdateSize * data->spec.rate / device->Frequency * pa_frame_size(&data->spec); data->attr.tlength = data->attr.minreq * maxu(device->NumUpdates, 2); + data->attr.prebuf = 0; o = pa_stream_set_buffer_attr(data->stream, &data->attr, stream_success_callback, device); -- cgit v1.2.3