Data Structures | |
| struct | snd_pcm_extplug |
| struct | snd_pcm_extplug_callback |
Defines | |
| #define | SND_PCM_EXTPLUG_VERSION_MAJOR 1 |
| #define | SND_PCM_EXTPLUG_VERSION_MINOR 0 |
| #define | SND_PCM_EXTPLUG_VERSION_TINY 1 |
| #define | SND_PCM_EXTPLUG_VERSION |
Typedefs | |
| typedef struct snd_pcm_extplug | snd_pcm_extplug_t |
| typedef struct snd_pcm_extplug_callback | snd_pcm_extplug_callback_t |
Enumerations | |
| enum | { SND_PCM_EXTPLUG_HW_FORMAT, SND_PCM_EXTPLUG_HW_CHANNELS, SND_PCM_EXTPLUG_HW_PARAMS } |
Functions | |
| int | snd_pcm_extplug_create (snd_pcm_extplug_t *ext, 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 *ext) |
| Delete the extplug instance. | |
| void | snd_pcm_extplug_params_reset (snd_pcm_extplug_t *ext) |
| Reset extplug parameters. | |
| 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_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. | |
| #define SND_PCM_EXTPLUG_VERSION |
Value:
((SND_PCM_EXTPLUG_VERSION_MAJOR<<16) |\ (SND_PCM_EXTPLUG_VERSION_MINOR<<8) |\ (SND_PCM_EXTPLUG_VERSION_TINY))
| #define SND_PCM_EXTPLUG_VERSION_MAJOR 1 |
Protocol major version
| #define SND_PCM_EXTPLUG_VERSION_MINOR 0 |
Protocol minor version
| #define SND_PCM_EXTPLUG_VERSION_TINY 1 |
Protocol tiny version
| typedef struct snd_pcm_extplug_callback snd_pcm_extplug_callback_t |
Callback table of extplug
| typedef struct snd_pcm_extplug snd_pcm_extplug_t |
Handle of external filter plugin
| anonymous enum |
| 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 |
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 |
| void snd_pcm_extplug_params_reset | ( | snd_pcm_extplug_t * | extplug | ) |
Reset extplug parameters.
| extplug | the extplug handle |
| 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 |
| 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 |
| 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 |
| 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 |
1.5.8