| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Information about a mixer's switch
typedef struct snd_switch
{
    int32_t iface;
    int32_t device;
    int32_t channel;
    char    name[36];
    uint32_t type;
    uint32_t subtype;
    uint32_t zero[2];
    union
    {
        uint32_t enable:1;
        struct
        {
            uint8_t data;
            uint8_t low;
            uint8_t high;
        }
        byte;
        struct
        {
            uint16_t data;
            uint16_t low;
            uint16_t high;
        }
        word;
        struct
        {
            uint32_t data;
            uint32_t low;
            uint32_t high;
        }
        dword;
        struct
        {
            uint32_t data;
            uint32_t items[30];
            uint32_t items_cnt;
        }
        list;
        struct
        {
            uint8_t selection;
            char    strings[11][11];
            uint8_t strings_cnt;
        }
        string_11;
        uint8_t raw[32];
        uint8_t reserved[128];      /* must be filled with zeroes */
    }
    value;
    uint8_t reserved[128];      /* must be filled with zeroes */
}
snd_switch_t;
The snd_switch_t structure describes the switches for a mixer. You can fill this structure by calling snd_ctl_mixer_switch_read().
The members include:
QNX Neutrino
snd_ctl_mixer_switch_read(), snd_ctl_mixer_switch_write()
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |