sdlClearAudioStream function
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.
\param stream the audio stream to clear. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
\sa SDL_GetAudioStreamAvailable \sa SDL_GetAudioStreamData \sa SDL_GetAudioStreamQueued \sa SDL_PutAudioStreamData
extern SDL_DECLSPEC bool SDLCALL SDL_ClearAudioStream(SDL_AudioStream *stream)
Implementation
bool sdlClearAudioStream(Pointer<SdlAudioStream> stream) {
final sdlClearAudioStreamLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<SdlAudioStream> stream),
int Function(Pointer<SdlAudioStream> stream)>('SDL_ClearAudioStream');
return sdlClearAudioStreamLookupFunction(stream) == 1;
}