Struct alsa::pcm::PCM
[−]
[src]
pub struct PCM(_, _);
snd_pcm_t wrapper - start here for audio playback and recording
Methods
impl PCM
[src]
fn open(name: &CStr, dir: Direction, nonblock: bool) -> Result<PCM>
fn start(&self) -> Result<()>
fn drop(&self) -> Result<()>
fn pause(&self, pause: bool) -> Result<()>
fn resume(&self) -> Result<()>
fn drain(&self) -> Result<()>
fn prepare(&self) -> Result<()>
fn reset(&self) -> Result<()>
fn recover(&self, err: c_int, silent: bool) -> Result<()>
fn wait(&self, timeout_ms: Option<u32>) -> Result<bool>
fn state(&self) -> State
fn bytes_to_frames(&self, i: isize) -> Frames
fn frames_to_bytes(&self, i: Frames) -> isize
fn avail_update(&self) -> Result<Frames>
fn avail(&self) -> Result<Frames>
fn avail_delay(&self) -> Result<(Frames, Frames)>
fn status(&self) -> Result<Status>
fn io_i8<'a>(&'a self) -> Result<IO<'a, i8>>
fn io_u8<'a>(&'a self) -> Result<IO<'a, u8>>
fn io_i16<'a>(&'a self) -> Result<IO<'a, i16>>
fn io_u16<'a>(&'a self) -> Result<IO<'a, u16>>
fn io_i32<'a>(&'a self) -> Result<IO<'a, i32>>
fn io_u32<'a>(&'a self) -> Result<IO<'a, u32>>
fn io_f32<'a>(&'a self) -> Result<IO<'a, f32>>
fn io_f64<'a>(&'a self) -> Result<IO<'a, f64>>
fn io<'a>(&'a self) -> IO<'a, u8>
fn hw_params(&self, h: &HwParams) -> Result<()>
Sets hw parameters. Note: No IO object can exist for this PCM when hw parameters are set.