mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-10 13:58:40 +00:00
Android claims to work with multiple devices, but doesn't actually appear to (at least, afaict), and it will report tons of devices that all just seem to play to the current default output, so for now, turn this off and only expose a default device. And then, with that default output, attempt to recover on errors by throwing away the current AAudioStream and building a new one. This let me plug/unplug a set of headphones from the headphone jack and audio would switch correctly to the new output.