[][src]Struct alsa::pcm::HwParams

pub struct HwParams<'a>(_, _);

Methods

impl<'a> HwParams<'a>[src]

pub fn any(a: &'a PCM) -> Result<HwParams<'a>>[src]

pub fn get_rate_resample(&self) -> Result<bool>[src]

pub fn set_rate_resample(&self, resample: bool) -> Result<()>[src]

pub fn set_channels_near(&self, v: u32) -> Result<u32>[src]

pub fn set_channels(&self, v: u32) -> Result<()>[src]

pub fn get_channels(&self) -> Result<u32>[src]

pub fn get_channels_max(&self) -> Result<u32>[src]

pub fn get_channels_min(&self) -> Result<u32>[src]

pub fn test_channels(&self, v: u32) -> Result<()>[src]

pub fn set_rate_near(&self, v: u32, dir: ValueOr) -> Result<u32>[src]

pub fn set_rate(&self, v: u32, dir: ValueOr) -> Result<()>[src]

pub fn get_rate(&self) -> Result<u32>[src]

pub fn get_rate_max(&self) -> Result<u32>[src]

pub fn get_rate_min(&self) -> Result<u32>[src]

pub fn test_rate(&self, rate: u32) -> Result<()>[src]

pub fn set_format(&self, v: Format) -> Result<()>[src]

pub fn get_format(&self) -> Result<Format>[src]

pub fn test_format(&self, v: Format) -> Result<()>[src]

pub fn set_access(&self, v: Access) -> Result<()>[src]

pub fn get_access(&self) -> Result<Access>[src]

pub fn set_period_size_near(&self, v: Frames, dir: ValueOr) -> Result<Frames>[src]

pub fn set_period_size(&self, v: Frames, dir: ValueOr) -> Result<()>[src]

pub fn set_period_time_near(&self, v: u32, dir: ValueOr) -> Result<u32>[src]

pub fn get_period_size(&self) -> Result<Frames>[src]

pub fn set_periods(&self, v: u32, dir: ValueOr) -> Result<()>[src]

pub fn get_periods(&self) -> Result<u32>[src]

pub fn set_buffer_size_near(&self, v: Frames) -> Result<Frames>[src]

pub fn set_buffer_size_max(&self, v: Frames) -> Result<Frames>[src]

pub fn set_buffer_size_min(&self, v: Frames) -> Result<Frames>[src]

pub fn set_buffer_size(&self, v: Frames) -> Result<()>[src]

pub fn set_buffer_time_near(&self, v: u32, dir: ValueOr) -> Result<u32>[src]

pub fn get_buffer_size(&self) -> Result<Frames>[src]

pub fn get_buffer_time_max(&self) -> Result<u32>[src]

pub fn can_pause(&self) -> bool[src]

Returns true if the alsa stream can be paused, false if not.

This function should only be called when the configuration space contains a single configuration. Call PCM::hw_params to choose a single configuration from the configuration space.

pub fn can_resume(&self) -> bool[src]

Returns true if the alsa stream can be resumed, false if not.

This function should only be called when the configuration space contains a single configuration. Call PCM::hw_params to choose a single configuration from the configuration space.

pub fn dump(&self, o: &mut Output) -> Result<()>[src]

pub fn copy_from(&mut self, other: &HwParams<'a>)[src]

Trait Implementations

impl<'a> Drop for HwParams<'a>[src]

impl<'a> Clone for HwParams<'a>[src]

impl<'a> Debug for HwParams<'a>[src]

Auto Trait Implementations

impl<'a> !Send for HwParams<'a>

impl<'a> !Sync for HwParams<'a>

impl<'a> Unpin for HwParams<'a>

impl<'a> !UnwindSafe for HwParams<'a>

impl<'a> !RefUnwindSafe for HwParams<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]