aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-04-13 23:36:05 -0700
committerChris Robinson <[email protected]>2020-04-13 23:36:05 -0700
commit7f81eec1a6266f41e40eb4ec3f8933a238a5343e (patch)
tree9bc9403c039059832cde2fcdcf858482cfd92e30 /alc
parent02d7fbfa0c3a24457b199688f9e6672ea253be14 (diff)
Avoid a function call to get the frame step
Diffstat (limited to 'alc')
-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;
}