[−][src]Struct alsa::mixer::Mixer
wraps snd_mixer_t
Methods
impl Mixer
[src]
pub fn new(name: &str, nonblock: bool) -> Result<Mixer>
[src]
Opens a mixer and attaches it to a card identified by its name (like hw:0) and loads the mixer after registering a Selem.
pub fn find_selem(&self, id: &SelemId) -> Option<Selem>
[src]
Creates a Selem by looking for a specific selem by name given a mixer (of a card)
pub fn open(nonblock: bool) -> Result<Mixer>
[src]
pub fn attach(&mut self, name: &CStr) -> Result<()>
[src]
pub fn load(&mut self) -> Result<()>
[src]
ⓘImportant traits for Iter<'a>pub fn iter(&self) -> Iter
[src]
ⓘImportant traits for Iter<'a>
pub fn wait(&self, timeout_ms: Option<u32>) -> Result<bool>
[src]
Trait Implementations
impl Descriptors for Mixer
[src]
fn count(&self) -> usize
[src]
fn fill(&self, p: &mut [pollfd]) -> Result<usize>
[src]
fn revents(&self, p: &[pollfd]) -> Result<Flags>
[src]
fn get(&self) -> Result<Vec<pollfd>>
[src]
impl Send for Mixer
[src]
impl Drop for Mixer
[src]
Closes mixer and frees used resources
impl Debug for Mixer
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,