[−][src]Function sdl2_sys::SDL_AudioStreamFlush
pub unsafe extern "C" fn SDL_AudioStreamFlush(
stream: *mut SDL_AudioStream
) -> c_int
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.
\sa SDL_NewAudioStream \sa SDL_AudioStreamPut \sa SDL_AudioStreamGet \sa SDL_AudioStreamAvailable \sa SDL_AudioStreamClear \sa SDL_FreeAudioStream