Function SDL_AudioStreamFlush
pub unsafe extern "C" fn SDL_AudioStreamFlush(
stream: *mut _SDL_AudioStream,
) -> i32
Available on crate feature
dep_sdl2
only.Expand description
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