mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 00:59:41 +01:00
Merge pull request #12541 from unknownbrackets/sdl-minor
SDL: Ignore audio switch events in first second
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -910,7 +910,9 @@ int main(int argc, char *argv[]) {
|
||||
if (!name) {
|
||||
break;
|
||||
}
|
||||
if (g_Config.bAutoAudioDevice || g_Config.sAudioDevice == name) {
|
||||
// Don't start auto switching for a second, because some devices init on start.
|
||||
bool doAutoSwitch = g_Config.bAutoAudioDevice && framecount > 60;
|
||||
if (doAutoSwitch || g_Config.sAudioDevice == name) {
|
||||
StopSDLAudioDevice();
|
||||
InitSDLAudioDevice(name ? name : "");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user