Writer, twitch streamer, extremely good product photos enthusiast & operator of at least these, probably more:

@ExtremelyGoodProductPhotos
@ioquake3


Mr. Nuclear Monster Twitch
www.twitch.tv/mrnuclearmonster
You must log in to comment.

in reply to @icculus's post:

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.

Pinned Tags