diff options
author | Chris Robinson <[email protected]> | 2009-10-31 19:30:12 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-10-31 19:30:12 -0700 |
commit | d964bb9f2f74dc2da124e48647b4af3a84cc8381 (patch) | |
tree | a73bc00ff7162e393bf0023a89d0972f836f4f4b | |
parent | 87dc7a5b97b5846d8a100bd8d7d0e1c0b8e80ebe (diff) |
Fix length calculation for pulse
-rw-r--r-- | Alc/pulseaudio.c | 2 |
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); |