diff options
author | Chris Robinson <[email protected]> | 2009-09-15 18:19:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-15 18:19:00 -0700 |
commit | 6636131d3bb52687229881d4d2343b5c464b5c81 (patch) | |
tree | 6a7b093f0a9edf563c3736a7c506a227f723b518 /Alc/pulseaudio.c | |
parent | eeea9631ce15d1bd239a837331658a2fb951f46f (diff) |
Pass the frame count to aluMixData
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 3b358a01..80383250 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -169,10 +169,11 @@ static void context_state_callback(pa_context *context, void *pdata) //{{{ static void stream_write_callback(pa_stream *stream, size_t len, void *pdata) //{{{ { ALCdevice *Device = pdata; + pulse_data *data = Device->ExtraData; void *buf = ppa_xmalloc0(len); SuspendContext(NULL); - aluMixData(Device->Context, buf, len, Device->Format); + aluMixData(Device->Context, buf, len/data->frame_size, Device->Format); ProcessContext(NULL); ppa_stream_write(stream, buf, len, ppa_xfree, 0, PA_SEEK_RELATIVE); |