![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Mixer group control structure
typedef struct snd_mixer_group_s
{
snd_mixer_gid_t gid;
uint32_t caps;
uint32_t channels;
int32_t min, max;
union
{
int32_t values[32];
struct
{
int32_t front_left;
int32_t front_right;
int32_t front_center;
int32_t rear_left;
int32_t rear_right;
int32_t woofer;
uint8_t reserved[128]; /* must be filled with zero */
} names;
} volume;
uint32_t mute;
uint32_t capture;
int32_t capture_group;
int32_t elements_size, elements, elements_over;
snd_mixer_eid_t *pelements;
void *pzero; /* align pointers on 64-bits --> point to NULL */
uint8_t reserved[128]; /* must be filled with zero */
} snd_mixer_group_t;
The snd_mixer_group_t structure is the control structure for a mixer group. You can get the information for a group by calling snd_mixer_group_read(), and set it by calling snd_mixer_group_write().
The members of this structure include:
For example, for stereo right and left speakers, bits 1 and 2 (00011) are mapped; for the center speaker, bit 3 (00100) is mapped.
![]() |
If the group is jointly volumed, all volume values must be the same; setting different values results in undefined behavior. |
![]() |
If the group is jointly muted, all mute bits must be the same; setting the bits differently results in undefined behavior. |
![]() |
If the group is jointly captured, all capture bits must be the same; setting the bits differently results in undefined behavior. |
The elements that are returned are the component elements that make up the group identified by gid.
QNX Neutrino
snd_mixer_eid_t, snd_mixer_gid_t, snd_mixer_group_read(), snd_mixer_group_write()
![]() |
![]() |
![]() |
![]() |