docs: Note that audio opening doesn't implicitly init SDL now.

main
Ryan C. Gordon 2023-06-22 18:29:45 -04:00
parent 97b2f747d0
commit e50cb72eb6
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,8 @@ The audio subsystem in SDL3 is dramatically different than SDL2. The primary way
The SDL 1.2 audio compatibility API has also been removed, as it was a simplified version of the audio callback interface.
SDL3 will not implicitly initialize the audio subsystem on your behalf if you open a device without doing so. Please explicitly call SDL_Init(SDL_INIT_AUDIO) at some point.
If your app depends on the callback method, there is a similar approach you can take. But first, this is the new approach:
In SDL2, you might have done something like this to play audio: