summaryrefslogtreecommitdiffstats
path: root/Alc/portaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r--Alc/portaudio.c6
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;