Function sdl2_sys::SDL_AudioStreamAvailable
source ยท pub unsafe extern "C" fn SDL_AudioStreamAvailable(
stream: *mut SDL_AudioStream,
) -> c_int
Expand description
Get the number of converted/resampled bytes available.
The stream may be buffering data behind the scenes until it has enough to resample correctly, so this number might be lower than what you expect, or even be zero. Add more data or flush the stream if you need the data now.
\since This function is available since SDL 2.0.7.
\sa SDL_NewAudioStream \sa SDL_AudioStreamPut \sa SDL_AudioStreamGet \sa SDL_AudioStreamFlush \sa SDL_AudioStreamClear \sa SDL_FreeAudioStream