mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
Sync SDL3 wiki -> header
[ci skip]
This commit is contained in:
@@ -1762,13 +1762,13 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SetAudioStreamGetCallback(SDL_AudioStream *
|
|||||||
* The callback can (optionally) call SDL_GetAudioStreamData() to obtain audio
|
* The callback can (optionally) call SDL_GetAudioStreamData() to obtain audio
|
||||||
* from the stream during this call.
|
* from the stream during this call.
|
||||||
*
|
*
|
||||||
* The callback's `additional_amount` argument is how many bytes of _converted_
|
* The callback's `additional_amount` argument is how many bytes of
|
||||||
* data (in the stream's output format) was provided by the caller, although
|
* _converted_ data (in the stream's output format) was provided by the
|
||||||
* this may underestimate a little for safety. This value might be less than
|
* caller, although this may underestimate a little for safety. This value
|
||||||
* what is currently available in the stream, if data was already there, and
|
* might be less than what is currently available in the stream, if data was
|
||||||
* might be less than the caller provided if the stream needs to keep a buffer
|
* already there, and might be less than the caller provided if the stream
|
||||||
* to aid in resampling. Which means the callback may be provided with zero
|
* needs to keep a buffer to aid in resampling. Which means the callback may
|
||||||
* bytes, and a different amount on each call.
|
* be provided with zero bytes, and a different amount on each call.
|
||||||
*
|
*
|
||||||
* The callback may call SDL_GetAudioStreamAvailable to see the total amount
|
* The callback may call SDL_GetAudioStreamAvailable to see the total amount
|
||||||
* currently available to read from the stream, instead of the total provided
|
* currently available to read from the stream, instead of the total provided
|
||||||
|
|||||||
Reference in New Issue
Block a user