sdlAudioStreamFlush function
Tell the stream that you're done sending data, and anything being buffered should be converted/resampled and made available immediately.
It is legal to add more data to a stream after flushing, but there will be audio gaps in the output. Generally this is intended to signal the end of input, so the complete output becomes available.
\since This function is available since SDL 2.0.7.
\sa SDL_NewAudioStream \sa SDL_AudioStreamPut \sa SDL_AudioStreamGet \sa SDL_AudioStreamAvailable \sa SDL_AudioStreamClear \sa SDL_FreeAudioStream
extern DECLSPEC int SDLCALL SDL_AudioStreamFlush(SDL_AudioStream *stream)
Implementation
int sdlAudioStreamFlush(Pointer<SdlAudioStream> stream) {
final sdlAudioStreamFlushLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlAudioStream> stream),
int Function(Pointer<SdlAudioStream> stream)>('SDL_AudioStreamFlush');
return sdlAudioStreamFlushLookupFunction(stream);
}