Recently purchased a new system which has multiple audio devices: on board sound, and HDMI sound. HDMI goes to in-built monitor speakers, and on board sound goes so amplified speakers. I like to swap between the two, and most apps change their output on-the-fly when I change the default playback device in Windows 10.
When my SDL app initializes, it chooses the correct default playback device, but the output doesn’t change to the new default audio device. Can I get notification in SDL about an audio device change? I was hoping SDL_AudioDeviceEvent would trigger, but it doesn’t. I assume that closing the audio down and re-opening it would change to the new default device? I’m using SDL_Mixer, but I don’t think that’s an issue.