Function sdl2_sys::SDL_NewAudioStream
source ยท pub unsafe extern "C" fn SDL_NewAudioStream(
src_format: SDL_AudioFormat,
src_channels: Uint8,
src_rate: c_int,
dst_format: SDL_AudioFormat,
dst_channels: Uint8,
dst_rate: c_int,
) -> *mut SDL_AudioStream
Expand description
Create a new audio stream.
\param src_format The format of the source audio \param src_channels The number of channels of the source audio \param src_rate The sampling rate of the source audio \param dst_format The format of the desired audio output \param dst_channels The number of channels of the desired audio output \param dst_rate The sampling rate of the desired audio output \returns 0 on success, or -1 on error.
\since This function is available since SDL 2.0.7.
\sa SDL_AudioStreamPut \sa SDL_AudioStreamGet \sa SDL_AudioStreamAvailable \sa SDL_AudioStreamFlush \sa SDL_AudioStreamClear \sa SDL_FreeAudioStream