Fix switching of audio devices on Windows.

Fixes #21337
This commit is contained in:
Henrik Rydgård committed 2026-03-04 14:41:59 +01:00
1 parent 892ef99daa
commit 2052ebc60c
8 files changed
+93 -26

No files matched your search

+1 -1
View File
@@ -1017,7 +1017,7 @@ void NativeFrame(GraphicsContext *graphicsContext) {
g_iconCache.FrameUpdate();
if (g_audioBackend) {
g_audioBackend->FrameUpdate(g_Config.bAutoAudioDevice);
g_audioBackend->FrameUpdate(g_Config.bAutoSwitchAudioDevice);
}
// NOTE: We must begin the frame before update, so we can do texture size queries and stuff in Measure etc.