WASAPI: Survive switching to a mono device. Fixes #14591

It's a little flaky whether it tries to switch or not, but you can at
least use Windows' device selector to switch back and forth.

Should maybe also add an option to not follow the default device... Not
sure.
This commit is contained in:
Henrik Rydgård committed 2021-07-10 01:22:34 +02:00
1 parent 1f16edd575
commit 828036f87b
4 files changed
+67 -12

No files matched your search

+1 -1
View File
@@ -205,7 +205,7 @@ public:
};
#ifdef _WIN32
int Win32Mix(short *buffer, int numSamples, int bits, int rate, int channels) {
int Win32Mix(short *buffer, int numSamples, int bits, int rate) {
return NativeMix(buffer, numSamples);
}
#endif