[][src]Function sdl2_sys::SDL_NewAudioStream

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

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 \return 0 on success, or -1 on error.

\sa SDL_AudioStreamPut \sa SDL_AudioStreamGet \sa SDL_AudioStreamAvailable \sa SDL_AudioStreamFlush \sa SDL_AudioStreamClear \sa SDL_FreeAudioStream