| Summary: | CoreAudio doesn't switch devices when user chooses a new default... | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ryan C. Gordon <icculus> |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | Keywords: | target-2.0.14 |
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | macOS 10.15 | ||
|
Description
Ryan C. Gordon
2019-11-02 03:01:14 UTC
Fixed in https://hg.libsdl.org/SDL/rev/682e469ffeed Turns out we need to track the system default device ourselves, and point the AudioQueue at a new device when it changes. I _think_ the AudioQueue manages data conversions for us here, but I don't know anything beyond loopwave worked when I toggled between my MacBook's speakers and a pair of PowerBeats bluetooth headphones. If this turns out to be a problem, we can just swap in an SDL_AudioStream as necessary, like we do with WASAPI. For now I consider this bug resolved, though! --ryan. |