Struct sdl2::audio::AudioCVT[src]
pub struct AudioCVT { pub raw: *mut SDL_AudioCVT, pub owned: bool, }
Fields
raw | |
owned |
Methods
impl AudioCVT
fn new(src_format: AudioFormat, src_channels: u8, src_rate: int, dst_format: AudioFormat, dst_channels: u8, dst_rate: int) -> Result<AudioCVT, ~str>
fn convert(&self, src: CVec<u8>) -> Result<CVec<u8>, ~str>
Convert audio data to a desired audio format.