# Struct alsa::mixer::Mixer [−] [src]

    pub struct Mixer(_);

wraps snd_mixer_t

## Methods

### `impl Mixer`
[src]

#### `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.

#### `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)

#### `fn open(nonblock: bool) -> Result<Mixer>`

#### `fn attach(&mut self, name: &CStr) -> Result<()>`

#### `fn load(&mut self) -> Result<()>`

#### `fn iter(&self) -> Iter`

#### `fn wait(&self, timeout_ms: Option<u32>) -> Result<bool>`

## Trait Implementations

### `impl Debug for Mixer`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl Send for Mixer`
[src]

### `impl Drop for Mixer`
[src]

Closes mixer and frees used resources

#### `fn drop(&mut self)`

A method called when the value goes out of scope. Read more

### `impl PollDescriptors for Mixer`
[src]

#### `fn count(&self) -> usize`

#### `fn fill(&self, p: &mut [pollfd]) -> Result<usize>`

#### `fn revents(&self, p: &[pollfd]) -> Result<PollFlags>`

#### `fn get(&self) -> Result<Vec<pollfd>>`

Wrapper around count and fill - returns an array of pollfds

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)