diff options
Diffstat (limited to 'alc/backends/portaudio.cpp')
-rw-r--r-- | alc/backends/portaudio.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/backends/portaudio.cpp b/alc/backends/portaudio.cpp index 1e3d0ce8..5de9ab58 100644 --- a/alc/backends/portaudio.cpp +++ b/alc/backends/portaudio.cpp @@ -110,7 +110,8 @@ int PortPlayback::writeCallback(const void*, void *outputBuffer, unsigned long f const PaStreamCallbackTimeInfo*, const PaStreamCallbackFlags) noexcept { std::lock_guard<PortPlayback> _{*this}; - aluMixData(mDevice, outputBuffer, static_cast<ALuint>(framesPerBuffer)); + aluMixData(mDevice, outputBuffer, static_cast<ALuint>(framesPerBuffer), + mDevice->channelsFromFmt()); return 0; } |