[][src]Function fermium::audio::SDL_AudioStreamGet

pub unsafe extern "C" fn SDL_AudioStreamGet(
    stream: *mut SDL_AudioStream,
    buf: *mut c_void,
    len: c_int
) -> c_int

Get converted/re-sampled data from the stream

  • stream The stream the audio is being requested from
  • buf A buffer to fill with audio data
  • len The maximum number of bytes to fill

Return: The number of bytes read from the stream, or -1 on error