docs: warn not to destroy an SDL_AudioStream during its callback.
Some checks failed
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

Fixes #15871.

(cherry picked from commit 0b692f64b0)
This commit is contained in:
Ryan C. Gordon 2026-06-23 13:49:46 -04:00
parent 929f060b68
commit db6d9d5c01
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -1854,6 +1854,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_UnlockAudioStream(SDL_AudioStream *stream);
* appropriate, but the system goes on with the data currently available to it
* if this callback does nothing.
*
* Do not call SDL_DestroyAudioStream() on `stream` during this callback.
*
* \param stream the SDL audio stream associated with this callback.
* \param additional_amount the amount of data, in bytes, that is needed right
* now.