summaryrefslogtreecommitdiffstats
path: root/Alc/pulseaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-10-31 19:30:12 -0700
committerChris Robinson <[email protected]>2009-10-31 19:30:12 -0700
commitd964bb9f2f74dc2da124e48647b4af3a84cc8381 (patch)
treea73bc00ff7162e393bf0023a89d0972f836f4f4b /Alc/pulseaudio.c
parent87dc7a5b97b5846d8a100bd8d7d0e1c0b8e80ebe (diff)
Fix length calculation for pulse
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r--Alc/pulseaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c
index 767688d8..106fbea5 100644
--- a/Alc/pulseaudio.c
+++ b/Alc/pulseaudio.c
@@ -266,7 +266,7 @@ static void stream_write_callback(pa_stream *stream, size_t len, void *pdata) //
ALCdevice *Device = pdata;
pulse_data *data = Device->ExtraData;
- len -= len&data->attr.minreq;
+ len -= len%data->attr.minreq;
if(len > 0)
{
void *buf = ppa_xmalloc0(len);