ALSA project - the C library reference: /builddir/build/BUILD/alsa-lib-1.1.4.1/src/mixer/simple_abst.c File Reference

ALSA project - the C library reference

- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
simple_abst.c File Reference

Mixer Simple Element Class Interface - Module Abstraction. More...

## Functions
int | snd_mixer_simple_basic_register (snd_mixer_t *mixer, struct snd_mixer_selem_regopt *options, snd_mixer_class_t **classp)
| Register mixer simple element class - basic abstraction. More...
int | snd_mixer_sbasic_info (const snd_mixer_class_t *class, sm_class_basic_t *info)
| Basic Mixer Abstraction - Get information about device. More...
void * | snd_mixer_sbasic_get_private (const snd_mixer_class_t *class)
| Get private data for basic abstraction. More...
void | snd_mixer_sbasic_set_private (const snd_mixer_class_t *class, void *private_data)
| Set private data for basic abstraction. More...
void | snd_mixer_sbasic_set_private_free (const snd_mixer_class_t *class, void(*private_free)(snd_mixer_class_t *class))
| Set private data free callback for basic abstraction. More...

## Detailed Description

Mixer Simple Element Class Interface - Module Abstraction.

Author
  Jaroslav Kysela perex.nosp@m.@per.nosp@m.ex.cz

Date
  2005

Mixer simple element class interface.

## Function Documentation

void* snd_mixer_sbasic_get_private | ( | const snd_mixer_class_t * | class | ) |

Get private data for basic abstraction.

Parameters

  class | Mixer class

Returns
  private data

int snd_mixer_sbasic_info | ( | const snd_mixer_class_t * | class,
|  | sm_class_basic_t * | info
| ) |  |

Basic Mixer Abstraction - Get information about device.

Parameters

  class | Mixer class
  info | Info structure

Returns
  0 on success otherwise a negative error code

void snd_mixer_sbasic_set_private | ( | const snd_mixer_class_t * | class,
|  | void * | private_data
| ) |  |

Set private data for basic abstraction.

Parameters

  class | Mixer class
  private_data | Private data

void snd_mixer_sbasic_set_private_free | ( | const snd_mixer_class_t * | class,
|  | void(*)(snd_mixer_class_t *class) | private_free
| ) |  |

Set private data free callback for basic abstraction.

Parameters

  class | Mixer class
  private_free | free callback for private data

int snd_mixer_simple_basic_register | ( | snd_mixer_t * | mixer,
|  | struct snd_mixer_selem_regopt * | options,
|  | snd_mixer_class_t ** | classp
| ) |  |

Register mixer simple element class - basic abstraction.

Parameters

  mixer | Mixer handle
  options | Options container
  classp | Pointer to returned mixer simple element class handle (or NULL

Returns
  0 on success otherwise a negative error code