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§
impl Freeze for Mixer
impl RefUnwindSafe for Mixer
impl !Sync for Mixer
impl Unpin for Mixer
impl UnwindSafe for Mixer
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