#define SND_PCM_IOPLUG_FLAG_LISTED (1<<0) |
bit flags for additional conditions
#define SND_PCM_IOPLUG_VERSION |
Value:
((SND_PCM_IOPLUG_VERSION_MAJOR<<16) |\ (SND_PCM_IOPLUG_VERSION_MINOR<<8) |\ (SND_PCM_IOPLUG_VERSION_TINY))
#define SND_PCM_IOPLUG_VERSION_MAJOR 1 |
Protocol major version
#define SND_PCM_IOPLUG_VERSION_MINOR 0 |
Protocol minor version
#define SND_PCM_IOPLUG_VERSION_TINY 1 |
Protocol tiny version
typedef struct snd_pcm_ioplug_callback snd_pcm_ioplug_callback_t |
Callback table of ioplug
typedef struct snd_pcm_ioplug snd_pcm_ioplug_t |
I/O plugin handle
anonymous enum |
hw constraints for ioplug
int snd_pcm_ioplug_create | ( | snd_pcm_ioplug_t * | ioplug, | |
const char * | name, | |||
snd_pcm_stream_t | stream, | |||
int | mode | |||
) |
Create an ioplug instance.
ioplug | the ioplug handle | |
name | name of PCM | |
stream | stream direction | |
mode | PCM open mode |
The callback is the mandatory field of ioplug handle. At least, start, stop and pointer callbacks must be set before calling this function.
int snd_pcm_ioplug_delete | ( | snd_pcm_ioplug_t * | ioplug | ) |
Delete the ioplug instance.
ioplug | the ioplug handle |
const snd_pcm_channel_area_t* snd_pcm_ioplug_mmap_areas | ( | snd_pcm_ioplug_t * | ioplug | ) |
Get mmap area of ioplug.
ioplug | the ioplug handle |
void snd_pcm_ioplug_params_reset | ( | snd_pcm_ioplug_t * | ioplug | ) |
Reset ioplug parameters.
ioplug | the ioplug handle |
int snd_pcm_ioplug_reinit_status | ( | snd_pcm_ioplug_t * | ioplug | ) |
Reinitialize the poll and mmap status.
ioplug | the ioplug handle |
int snd_pcm_ioplug_set_param_list | ( | snd_pcm_ioplug_t * | ioplug, | |
int | type, | |||
unsigned int | num_list, | |||
const unsigned int * | list | |||
) |
Set parameter as the list.
ioplug | the ioplug handle | |
type | parameter type | |
num_list | number of available values | |
list | the list of available values |
int snd_pcm_ioplug_set_param_minmax | ( | snd_pcm_ioplug_t * | ioplug, | |
int | type, | |||
unsigned int | min, | |||
unsigned int | max | |||
) |
Set parameter as the min/max values.
ioplug | the ioplug handle | |
type | parameter type | |
min | the minimum value | |
max | the maximum value |