Sync SDL3 wiki -> header
[ci skip]
This commit is contained in:
@@ -1934,15 +1934,14 @@ extern SDL_DECLSPEC SDL_AudioStream * SDLCALL SDL_OpenAudioDeviceStream(SDL_Audi
|
|||||||
/**
|
/**
|
||||||
* A callback that fires around an audio device's processing work.
|
* A callback that fires around an audio device's processing work.
|
||||||
*
|
*
|
||||||
* This callback fires when a logical audio device is about to start
|
* This callback fires when a logical audio device is about to start accessing
|
||||||
* accessing its bound audio streams, and fires again when it has
|
* its bound audio streams, and fires again when it has finished accessing
|
||||||
* finished accessing them. It covers the range of one "iteration" of
|
* them. It covers the range of one "iteration" of the audio device.
|
||||||
* the audio device.
|
|
||||||
*
|
*
|
||||||
* It can be useful to use this callback to update state that must
|
* It can be useful to use this callback to update state that must apply to
|
||||||
* apply to all bound audio streams atomically: to make sure state
|
* all bound audio streams atomically: to make sure state changes don't happen
|
||||||
* changes don't happen while half of the streams are already processed
|
* while half of the streams are already processed for the latest audio
|
||||||
* for the latest audio buffer.
|
* buffer.
|
||||||
*
|
*
|
||||||
* This callback should run as quickly as possible and not block for any
|
* This callback should run as quickly as possible and not block for any
|
||||||
* significant time, as this callback delays submission of data to the audio
|
* significant time, as this callback delays submission of data to the audio
|
||||||
@@ -1997,8 +1996,10 @@ typedef void (SDLCALL *SDL_AudioIterationCallback)(void *userdata, SDL_AudioDevi
|
|||||||
* for both.
|
* for both.
|
||||||
*
|
*
|
||||||
* \param devid the ID of an opened audio device.
|
* \param devid the ID of an opened audio device.
|
||||||
* \param start a callback function to be called at the start of an iteration. Can be NULL.
|
* \param start a callback function to be called at the start of an iteration.
|
||||||
* \param end a callback function to be called at the end of an iteration. Can be NULL.
|
* Can be NULL.
|
||||||
|
* \param end a callback function to be called at the end of an iteration. Can
|
||||||
|
* be NULL.
|
||||||
* \param userdata app-controlled pointer passed to callback. Can be NULL.
|
* \param userdata app-controlled pointer passed to callback. Can be NULL.
|
||||||
* \returns true on success or false on failure; call SDL_GetError() for more
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
||||||
* information.
|
* information.
|
||||||
|
|||||||
Reference in New Issue
Block a user