Control callback functions
typedef struct snd_ctl_callbacks { void *private_data; /* should be used by an application */ void (*rebuild) (void *private_data); void (*xswitch) (void *private_data, int cmd, int iface, snd_switch_list_item_t *item); void *reserved[29]; /* reserved for future use - must be NULL!!! */ } snd_ctl_callbacks_t;
Use the snd_ctl_callbacks_t structure to define the callback functions that you need to handle control events. Pass a pointer to an instance of this structure to snd_ctl_read().
The members of the snd_ctl_callbacks_t structure include:
Make sure that you zero-fill any members that you aren't interested in. You can zero-fill the entire snd_ctl_callbacks_t structure if you aren't interested in tracking any of these events. |
The rebuild callback is called whenever the control device is rebuilt. Its only argument is the private_data that you specified in this structure.
The xswitch callback is called whenever a switch changes. Its arguments are:
QNX Neutrino