aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-02 17:01:35 -0700
committerChris Robinson <[email protected]>2012-10-02 17:01:35 -0700
commitb5d9d8e0054a43a7b1681c074f67bc587ff2a387 (patch)
tree10cc312ce9563c8aca8d9392f7154721c92dcacb
parent825c5b5282f9c06b90bb3e22c967270c25bb1796 (diff)
Reset maxlength if PulseAudio updates the playback rate
-rw-r--r--Alc/backends/pulseaudio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c
index a490d0e1..10e2fa6c 100644
--- a/Alc/backends/pulseaudio.c
+++ b/Alc/backends/pulseaudio.c
@@ -1106,6 +1106,7 @@ static ALCboolean pulse_reset_playback(ALCdevice *device)
device->UpdateSize = (device->UpdateSize+3)&~3;
data->attr.minreq = device->UpdateSize * pa_frame_size(&data->spec);
data->attr.tlength = data->attr.minreq * maxu(device->NumUpdates, 2);
+ data->attr.maxlength = -1;
data->attr.prebuf = 0;
o = pa_stream_set_buffer_attr(data->stream, &data->attr,