Clear any pending data in the stream.
Defined in <SDL3/SDL_audio.h>
bool SDL_ClearAudioStream(SDL_AudioStream *stream);
SDL_AudioStream * | stream | the audio stream to clear. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
This drops any queued data, so there will be nothing to read from the stream until more is added.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.