ALSA project - the C library reference
|
External Filter Plugin SDK. More...
Functions | |
int | snd_pcm_extplug_create (snd_pcm_extplug_t *extplug, const char *name, snd_config_t *root, snd_config_t *slave_conf, snd_pcm_stream_t stream, int mode) |
Create an extplug instance. | |
int | snd_pcm_extplug_delete (snd_pcm_extplug_t *extplug) |
Delete the extplug instance. | |
void | snd_pcm_extplug_params_reset (snd_pcm_extplug_t *extplug) |
Reset extplug parameters. | |
int | snd_pcm_extplug_set_slave_param_list (snd_pcm_extplug_t *extplug, int type, unsigned int num_list, const unsigned int *list) |
Set slave parameter as the list. | |
int | snd_pcm_extplug_set_slave_param_minmax (snd_pcm_extplug_t *extplug, int type, unsigned int min, unsigned int max) |
Set slave parameter as the min/max values. | |
int | snd_pcm_extplug_set_param_list (snd_pcm_extplug_t *extplug, int type, unsigned int num_list, const unsigned int *list) |
Set master parameter as the list. | |
int | snd_pcm_extplug_set_param_minmax (snd_pcm_extplug_t *extplug, int type, unsigned int min, unsigned int max) |
Set master parameter as the min/max values. | |
int | snd_pcm_extplug_set_param_link (snd_pcm_extplug_t *extplug, int type, int keep_link) |
Keep the client and slave format/channels the same if requested. This is for example useful if this extplug does not support any channel conversion. | |
External Filter Plugin SDK.
int snd_pcm_extplug_create | ( | snd_pcm_extplug_t * | extplug, |
const char * | name, | ||
snd_config_t * | root, | ||
snd_config_t * | slave_conf, | ||
snd_pcm_stream_t | stream, | ||
int | mode ) |
Create an extplug instance.
extplug | the extplug handle |
name | name of the PCM |
root | configuration tree root |
slave_conf | slave configuration root |
stream | stream direction |
mode | PCM open mode |
Creates the extplug instance based on the given handle. The slave_conf argument is mandatory, and usually taken from the config tree of the PCM plugin as "slave" config value. name, root, stream and mode arguments are the values used for opening the PCM.
The callback is the mandatory field of extplug handle. At least, start, stop and pointer callbacks must be set before calling this function.
int snd_pcm_extplug_delete | ( | snd_pcm_extplug_t * | extplug | ) |
Delete the extplug instance.
extplug | the extplug handle to delete |
The destructor of extplug instance. Closes the PCM and deletes the associated resources.
void snd_pcm_extplug_params_reset | ( | snd_pcm_extplug_t * | extplug | ) |
Reset extplug parameters.
extplug | the extplug handle |
Resets the all parameters for the given extplug handle.
int snd_pcm_extplug_set_param_link | ( | snd_pcm_extplug_t * | extplug, |
int | type, | ||
int | keep_link ) |
Keep the client and slave format/channels the same if requested. This is for example useful if this extplug does not support any channel conversion.
extplug | the extplug handle |
type | parameter type |
keep_link | if 1 the parameter identified by type will be kept the same for the client and slave PCM of this extplug |
int snd_pcm_extplug_set_param_list | ( | snd_pcm_extplug_t * | extplug, |
int | type, | ||
unsigned int | num_list, | ||
const unsigned int * | list ) |
Set master parameter as the list.
extplug | the extplug handle |
type | parameter type |
num_list | number of available values |
list | the list of available values |
Sets the master parameter as the list. The available values of the given parameter type of this PCM (as input) is restricted to the ones of the given list.
int snd_pcm_extplug_set_param_minmax | ( | snd_pcm_extplug_t * | extplug, |
int | type, | ||
unsigned int | min, | ||
unsigned int | max ) |
Set master parameter as the min/max values.
extplug | the extplug handle |
type | parameter type |
min | the minimum value |
max | the maximum value |
Sets the master parameter as the min/max values. The available values of the given parameter type of this PCM (as input) is restricted between the given minimum and maximum values.
int snd_pcm_extplug_set_slave_param_list | ( | snd_pcm_extplug_t * | extplug, |
int | type, | ||
unsigned int | num_list, | ||
const unsigned int * | list ) |
Set slave parameter as the list.
extplug | the extplug handle |
type | parameter type |
num_list | number of available values |
list | the list of available values |
Sets the slave parameter as the list. The available values of the given parameter type of the slave PCM is restricted to the ones of the given list.
int snd_pcm_extplug_set_slave_param_minmax | ( | snd_pcm_extplug_t * | extplug, |
int | type, | ||
unsigned int | min, | ||
unsigned int | max ) |
Set slave parameter as the min/max values.
extplug | the extplug handle |
type | parameter type |
min | the minimum value |
max | the maximum value |
Sets the slave parameter as the min/max values. The available values of the given parameter type of the slave PCM is restricted between the given minimum and maximum values.