Make AddMouseRegion's index unsigned
[dockapps.git] / AlsaMixer.app / AMixer / AItem.h
bloba88c735d079e405f4205470604bcb9653bbe791c
1 // AItem.h
2 //
3 // Copyright (C) 2004, Petr Hlavka
4 //
5 // SPDX-License-Identifier: GPL-2.0+
7 #ifndef AITEM_H
8 #define AITEM_H
10 #include "AMixer.h"
11 #include "AChannel.h"
13 #include <alsa/asoundlib.h>
14 #include <vector>
17 class AChannel;
18 class AMixer;
20 class AItem {
21 private:
22 AMixer *mixer; // parent mixer
23 std::vector<AChannel *> pbChannels; // item channels
25 long minPVolume, maxPVolume; // min/max playback volume
26 bool hPVolume; // has Playback volume
27 bool hPSwitch; // has Playback switch
29 public:
30 snd_mixer_elem_t *aElem; // mixer item element
31 const char *name; // item name
33 AItem(AMixer *m, snd_mixer_elem_t *e); // ctor
34 ~AItem(); // dtor
36 void setVolumePerc(unsigned int percent);
37 unsigned int getVolumePerc();
38 bool isMuted();
39 void mute();
40 void unmute();
43 #endif