[][src]Function fermium::audio::SDL_NewAudioStream

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

Create a new audio stream

  • src_format The format of the source audio
  • src_channels The number of channels of the source audio
  • src_rate The sampling rate of the source audio
  • dst_format The format of the desired audio output
  • dst_channels The number of channels of the desired audio output
  • dst_rate The sampling rate of the desired audio output

Return: 0 on success, or -1 on error.