Sync SDL3 wiki -> header

[ci skip]
This commit is contained in:
SDL Wiki Bot
2025-05-26 16:35:37 +00:00
parent 5e50d39b38
commit 08b6f6175a

View File

@@ -1418,9 +1418,9 @@ extern SDL_DECLSPEC bool SDLCALL SDL_PutAudioStreamData(SDL_AudioStream *stream,
* A callback that fires for completed SDL_PutAudioStreamDataNoCopy() data. * A callback that fires for completed SDL_PutAudioStreamDataNoCopy() data.
* *
* When using SDL_PutAudioStreamDataNoCopy() to provide data to an * When using SDL_PutAudioStreamDataNoCopy() to provide data to an
* SDL_AudioStream, it's not safe to dispose of the data until the stream * SDL_AudioStream, it's not safe to dispose of the data until the stream has
* has completely consumed it. Often times it's difficult to know exactly * completely consumed it. Often times it's difficult to know exactly when
* when this has happened. * this has happened.
* *
* This callback fires once when the stream no longer needs the buffer, * This callback fires once when the stream no longer needs the buffer,
* allowing the app to easily free or reuse it. * allowing the app to easily free or reuse it.
@@ -1459,11 +1459,11 @@ typedef void (SDLCALL *SDL_AudioStreamDataCompleteCallback)(void *userdata, cons
* stream if it hasn't been changed. * stream if it hasn't been changed.
* *
* An optional callback may be provided, which is called when the stream no * An optional callback may be provided, which is called when the stream no
* longer needs the data. Once this callback fires, the stream will not * longer needs the data. Once this callback fires, the stream will not access
* access the data again. * the data again.
* *
* Note that there is still an allocation to store tracking information, * Note that there is still an allocation to store tracking information, so
* so this function is more efficient for larger blocks of data. If you're * this function is more efficient for larger blocks of data. If you're
* planning to put a few samples at a time, it will be more efficient to use * planning to put a few samples at a time, it will be more efficient to use
* SDL_PutAudioStreamData(), which allocates and buffers in blocks. * SDL_PutAudioStreamData(), which allocates and buffers in blocks.
* *