The SDL3 Audio Subsystem redesign is about to land! I made a little video highlighting all the magic it provides:
EDIT: This was merged a few days ago!

Writer, twitch streamer, extremely good product photos enthusiast & operator of at least these, probably more:
The SDL3 Audio Subsystem redesign is about to land! I made a little video highlighting all the magic it provides:
EDIT: This was merged a few days ago!
I'm very excited for this. Also that demonstration program is really cool and helpful illustrating how the system works. Amazing work!
How does the automatic switching to a new default device work if they don't have the same amount of channels?
Like if you have a 5.1 speaker set connected to your soundcard as default device (and output sound on that with SDL3) and then plug in headphones and make them the default device (possibly the OS even switches automatically)
So one of the major upgrades for SDL3 is that SDL_AudioStreams no longer have their input and output formats locked at creation time, and they now convert data on output instead of input, so moving to a new device is just a matter of telling the audio stream to spit out data in a different format and carrying on. If the application was feeding the stream 5.1 data, it will continue to do so like nothing happened and the stream will convert it to stereo on the fly. If it was feeding stereo data originally to the 5.1 device, the stream will stop converting and just pass it through as-is.