Function SDL_ClearAudioStream
pub unsafe extern "C" fn SDL_ClearAudioStream(
stream: *mut SDL_AudioStream,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Clear any pending data in the stream.
This drops any queued data, so there will be nothing to read from the stream until more is added.
§Parameters
stream
: the audio stream to clear.
§Return value
Returns true on success or false on failure; call SDL_GetError()
for more
information.
§Thread safety
It is safe to call this function from any thread.
§Availability
This function is available since SDL 3.2.0.