aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-21 18:07:20 -0800
committerChris Robinson <[email protected]>2012-02-21 18:07:20 -0800
commit1dde8ad60b75ea461c107242f88530e6281afaa8 (patch)
tree2b7eac5fd7db6920b510ccab7de298c27c347e36
parent45b9cbe2b3328f108855c23f4e8d70f11bbac095 (diff)
Use the stored minreq size from PulseAudio for rounding off the length to write
-rw-r--r--Alc/backends/pulseaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c
index 64204814..7c961563 100644
--- a/Alc/backends/pulseaudio.c
+++ b/Alc/backends/pulseaudio.c
@@ -623,7 +623,7 @@ static ALuint PulseProc(ALvoid *param)
pa_threaded_mainloop_lock(data->loop);
do {
len = (Device->Connected ? pa_stream_writable_size(data->stream) : 0);
- len -= len%(Device->UpdateSize*data->frame_size);
+ len -= len%data->attr.minreq;
if(len == 0)
{
pa_threaded_mainloop_wait(data->loop);