aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/portaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-07-30 06:13:54 -0700
committerChris Robinson <[email protected]>2021-07-30 06:13:54 -0700
commit3b3df06195ad94588b4b1d2d9a8ddb3d9eba84c6 (patch)
tree121988f4b6ce3698d635e70ca994113f7dd7f5c8 /alc/backends/portaudio.cpp
parent1fd4c865fc084f134363db5155361d5483679235 (diff)
Be more robust with unexpected channel counts
Diffstat (limited to 'alc/backends/portaudio.cpp')
-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 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;