fixed (bug) Audio output device not switching
build-dev / nix-build (push) Successful in 47s

This commit is contained in:
NeilClack
2026-08-27 18:45:57 -05:00
parent 43cd93bbd7
commit d84307bd0e
6 changed files with 312 additions and 13 deletions
+7
View File
@@ -196,6 +196,13 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) {
state.quitRequested = true;
}
if (event->type == SDL_EVENT_AUDIO_DEVICE_ADDED ||
event->type == SDL_EVENT_AUDIO_DEVICE_REMOVED) {
// Route device hotplug to the audio manager so an active device that
// disappears is failed over to the system default automatically.
state.audio.handleDeviceEvent(*event);
}
if (event->type == SDL_EVENT_WINDOW_RESIZED) {
radiantwave::logger::Logger::instance().info(
"Graphics", "Window resized to " +