3 // Copyright (C) 2004, Petr Hlavka
5 // SPDX-License-Identifier: GPL-2.0+
12 #include <alsa/asoundlib.h>
21 snd_mixer_t
*mixerHandle
;
22 AItem
*mixerItems
[MIXER_ITEMS
];
25 void error(const char *errorString
, int errorCode
);
28 AMixer(const char *card
); // ctor
33 AItem
*attachItem(unsigned int itemNumber
, const char *itemName
);
34 bool itemOK(unsigned int itemNumber
);
35 int itemGetVolume(unsigned int itemNumber
);
36 void itemSetVolume(unsigned int itemNumber
, unsigned int volume
);
37 int itemIsMuted(unsigned int itemNumber
);
38 void itemToggleMute(unsigned int itemNumber
);
41 static bool mixerElemsChanged();
42 static bool mixerChanged();
43 static char* convertIDToCard(const char* cardId
);