Function fermium::audio::SDL_NewAudioStream
source · pub unsafe extern "C" fn SDL_NewAudioStream(
src_format: SDL_AudioFormat,
src_channels: u8,
src_rate: c_int,
dst_format: SDL_AudioFormat,
dst_channels: u8,
dst_rate: c_int
) -> *mut SDL_AudioStream
Expand description
Create a new audio stream
src_format
The format of the source audiosrc_channels
The number of channels of the source audiosrc_rate
The sampling rate of the source audiodst_format
The format of the desired audio outputdst_channels
The number of channels of the desired audio outputdst_rate
The sampling rate of the desired audio output
Return: 0 on success, or -1 on error.