Function sdl2_sys::SDL_AudioStreamPut
source ยท pub unsafe extern "C" fn SDL_AudioStreamPut(
stream: *mut SDL_AudioStream,
buf: *const c_void,
len: c_int,
) -> c_int
Expand description
Add data to be converted/resampled to the stream.
\param stream The stream the audio data is being added to \param buf A pointer to the audio data to add \param len The number of bytes to write to the stream \returns 0 on success, or -1 on error.
\since This function is available since SDL 2.0.7.
\sa SDL_NewAudioStream \sa SDL_AudioStreamGet \sa SDL_AudioStreamAvailable \sa SDL_AudioStreamFlush \sa SDL_AudioStreamClear \sa SDL_FreeAudioStream