ALSA project - the C library reference
 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.
int snd_mixer_sbasic_info (const snd_mixer_class_t *class, sm_class_basic_t *info)
 Basic Mixer Abstraction - Get information about device.
void * snd_mixer_sbasic_get_private (const snd_mixer_class_t *class)
 Get private data for basic abstraction.
void snd_mixer_sbasic_set_private (const snd_mixer_class_t *class, void *private_data)
 Set private data for basic abstraction.
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.

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:
classMixer 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:
classMixer class
infoInfo 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:
classMixer class
private_dataPrivate 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:
classMixer class
private_freefree 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:
mixerMixer handle
optionsOptions container
classpPointer to returned mixer simple element class handle (or NULL
Returns:
0 on success otherwise a negative error code