Struct alsa::mixer::Mixer [−][src]
pub struct Mixer(_);
wraps snd_mixer_t
Methods
impl Mixer
[src]
impl Mixer
pub fn new(name: &str, nonblock: bool) -> Result<Mixer>
[src]
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.
pub fn find_selem(&self, id: &SelemId) -> Option<Selem>
[src]
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>
[src]
pub fn open(nonblock: bool) -> Result<Mixer>
pub fn attach(&mut self, name: &CStr) -> Result<()>
[src]
pub fn attach(&mut self, name: &CStr) -> Result<()>
pub fn load(&mut self) -> Result<()>
[src]
pub fn load(&mut self) -> Result<()>
ⓘImportant traits for Iter<'a>pub fn iter(&self) -> Iter
[src]
ⓘImportant traits for Iter<'a>
pub fn iter(&self) -> Iter
pub fn wait(&self, timeout_ms: Option<u32>) -> Result<bool>
[src]
pub fn wait(&self, timeout_ms: Option<u32>) -> Result<bool>
Trait Implementations
impl Debug for Mixer
[src]
impl Debug for Mixer
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Send for Mixer
[src]
impl Send for Mixer
impl Drop for Mixer
[src]
impl Drop for Mixer
Closes mixer and frees used resources
impl PollDescriptors for Mixer
[src]
impl PollDescriptors for Mixer