Function sdl2_sys::SDL_AudioStreamGet
source ยท pub unsafe extern "C" fn SDL_AudioStreamGet(
stream: *mut SDL_AudioStream,
buf: *mut c_void,
len: c_int,
) -> c_int
Expand description
Get converted/resampled data from the stream
\param stream The stream the audio is being requested from \param buf A buffer to fill with audio data \param len The maximum number of bytes to fill \returns the number of bytes read from the stream, or -1 on error
\since This function is available since SDL 2.0.7.
\sa SDL_NewAudioStream \sa SDL_AudioStreamPut \sa SDL_AudioStreamAvailable \sa SDL_AudioStreamFlush \sa SDL_AudioStreamClear \sa SDL_FreeAudioStream