diff options
author | Chris Robinson <[email protected]> | 2012-03-04 09:24:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-03-04 09:24:07 -0800 |
commit | 0f0141b9dddfc97b4dbb8ba394fc5d26bb8e2b1a (patch) | |
tree | eb9ba15e223f486d55e3f8184738b134a77f8565 /Alc/backends | |
parent | 302c08a14bf10a97fa607efbaa7b15f7d2e1bc4a (diff) |
Set prebuf to 0 since we're handling the stream start manually
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/pulseaudio.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |