mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
aaudio: Respect SDL_HINT_AUDIO_DEVICE_STREAM_ROLE hint.
Fixes #15299.
(cherry picked from commit 4d17b99d0a)
This commit is contained in:
parent
b7e1f88db8
commit
2503d34724
3 changed files with 30 additions and 1 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue