Clear any pending data in the stream.
Defined in <SDL3/SDL_audio.h>
stream | The audio stream to clear |
Returns 0 on success or a negative error code 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.0.0.