aaudio: Respect SDL_HINT_AUDIO_DEVICE_STREAM_ROLE hint.

Fixes #15299.

(cherry picked from commit 4d17b99d0a)
This commit is contained in:
Ryan C. Gordon 2026-04-01 20:38:27 -04:00
parent b7e1f88db8
commit 2503d34724
No known key found for this signature in database
GPG key ID: FA148B892AB48044
3 changed files with 30 additions and 1 deletions

View file

@ -402,6 +402,11 @@ extern "C" {
* - "Movie" - Music or sound with dialog
* - "Media" - Music or sound without dialog
*
* Android's AAudio target supports this hint as of SDL 3.4.4. Android does
* not support the exact same options as WASAPI, but for portability, will
* attempt to map these same strings to the `aaudio_usage_t` constants. For
* example, "Movie" and "Media" will both map to `AAUDIO_USAGE_MEDIA`, etc.
*
* If your application applies its own echo cancellation, gain control, and
* noise reduction it should also set SDL_HINT_AUDIO_DEVICE_RAW_STREAM.
*