aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/portaudio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/portaudio.cpp b/alc/backends/portaudio.cpp
index 18338917..1ea2c7d0 100644
--- a/alc/backends/portaudio.cpp
+++ b/alc/backends/portaudio.cpp
@@ -111,7 +111,7 @@ int PortPlayback::writeCallback(const void*, void *outputBuffer, unsigned long f
const PaStreamCallbackTimeInfo*, const PaStreamCallbackFlags) noexcept
{
aluMixData(mDevice, outputBuffer, static_cast<ALuint>(framesPerBuffer),
- mDevice->channelsFromFmt());
+ static_cast<ALuint>(mParams.channelCount));
return 0;
}