diff options
author | Chris Robinson <[email protected]> | 2021-07-30 06:13:54 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-07-30 06:13:54 -0700 |
commit | 3b3df06195ad94588b4b1d2d9a8ddb3d9eba84c6 (patch) | |
tree | 121988f4b6ce3698d635e70ca994113f7dd7f5c8 /alc/backends/portaudio.cpp | |
parent | 1fd4c865fc084f134363db5155361d5483679235 (diff) |
Be more robust with unexpected channel counts
Diffstat (limited to 'alc/backends/portaudio.cpp')
-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 2d5cd36d..9c94587d 100644 --- a/alc/backends/portaudio.cpp +++ b/alc/backends/portaudio.cpp @@ -200,7 +200,7 @@ bool PortPlayback::reset() return false; } - if(mParams.channelCount == 2) + if(mParams.channelCount >= 2) mDevice->FmtChans = DevFmtStereo; else if(mParams.channelCount == 1) mDevice->FmtChans = DevFmtMono; |