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/portaudio.c | |
parent | eeea9631ce15d1bd239a837331658a2fb951f46f (diff) |
Pass the frame count to aluMixData
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r-- | Alc/portaudio.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c index 0142cac3..e9e15621 100644 --- a/Alc/portaudio.c +++ b/Alc/portaudio.c @@ -56,17 +56,13 @@ static int pa_callback(const void *inputBuffer, void *outputBuffer, const PaStreamCallbackFlags statusFlags, void *userData) { ALCdevice *device = (ALCdevice*)userData; - int frameSize; (void)inputBuffer; (void)timeInfo; (void)statusFlags; - frameSize = aluBytesFromFormat(device->Format); - frameSize *= aluChannelsFromFormat(device->Format); - SuspendContext(NULL); - aluMixData(device->Context, outputBuffer, framesPerBuffer*frameSize, device->Format); + aluMixData(device->Context, outputBuffer, framesPerBuffer, device->Format); ProcessContext(NULL); return 0; |