diff options
author | Chris Robinson <[email protected]> | 2020-04-13 23:36:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-13 23:36:05 -0700 |
commit | 7f81eec1a6266f41e40eb4ec3f8933a238a5343e (patch) | |
tree | 9bc9403c039059832cde2fcdcf858482cfd92e30 /alc | |
parent | 02d7fbfa0c3a24457b199688f9e6672ea253be14 (diff) |
Avoid a function call to get the frame step
Diffstat (limited to 'alc')
-rw-r--r-- | alc/backends/portaudio.cpp | 2 |
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; } |