pub fn new(name: &str, nonblock: bool) -> Result<Mixer> {
        let mut mixer = Mixer::open(nonblock)?;
        mixer.attach(&CString::new(name).unwrap())?;
        Selem::register(&mut mixer)?;
        mixer.load()?;
        Ok(mixer)
    }
/// Opens a mixer and attaches it to a card identified by its name (like hw:0) and loads the
/// mixer after registering a Selem.
Opens a mixer and attaches it to a card identified by its name (like hw:0) and loads the
mixer after registering a Selem.
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 new(name: &str, nonblock: bool) -> Result<Mixer> {
        let mut mixer = Mixer::open(nonblock)?;
        mixer.attach(&CString::new(name).unwrap())?;
        Selem::register(&mut mixer)?;
        mixer.load()?;
        Ok(mixer)
    }
pub fn new ( name : & str , nonblock : bool ) -> Result < Mixer > { let mut mixer = Mixer :: open ( nonblock ) ? ; mixer . attach ( & CString :: new ( name ) . unwrap ( ) ) ? ; Selem :: register ( & mut mixer ) ? ; mixer . load ( ) ? ; Ok ( mixer ) }
Opens a mixer and attaches it to a card identified by its name (like hw:0) and loads the
mixer after registering a Selem.
Opens a mixer and attaches it to a card identified by its name ( like hw : 0 ) and loads the mixer after registering a Selem .
name
&str
nonblock
bool
name
&str
nonblock
bool