pub struct Mixer(/* private fields */);
Expand description
wraps snd_mixer_t
Implementations§
source§impl Mixer
impl Mixer
sourcepub fn new(name: &str, nonblock: bool) -> Result<Mixer>
pub fn new(name: &str, nonblock: bool) -> Result<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.
sourcepub fn find_selem(&self, id: &SelemId) -> Option<Selem<'_>>
pub fn find_selem(&self, id: &SelemId) -> Option<Selem<'_>>
Creates a Selem by looking for a specific selem by name given a mixer (of a card)
pub fn open(nonblock: bool) -> Result<Mixer>
pub fn attach(&mut self, name: &CStr) -> Result<()>
pub fn load(&mut self) -> Result<()>
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn handle_events(&self) -> Result<u32>
pub fn wait(&self, timeout_ms: Option<u32>) -> Result<()>
Trait Implementations§
source§impl Descriptors for Mixer
impl Descriptors for Mixer
impl Send for Mixer
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more