1 // AMixer.h, Petr Hlavka, 2004
8 #include <alsa/asoundlib.h>
17 snd_mixer_t
*mixerHandle
;
18 AItem
*mixerItems
[MIXER_ITEMS
];
21 void error(const char *errorString
, int errorCode
);
24 AMixer(const char *card
); // ctor
29 AItem
*attachItem(unsigned int itemNumber
, const char *itemName
);
30 bool itemOK(unsigned int itemNumber
);
31 int itemGetVolume(unsigned int itemNumber
);
32 void itemSetVolume(unsigned int itemNumber
, unsigned int volume
);
33 int itemIsMuted(unsigned int itemNumber
);
34 void itemToggleMute(unsigned int itemNumber
);
37 static bool mixerElemsChanged();
38 static bool mixerChanged();
39 static char* convertIDToCard(const char* cardId
);