Add AlsaMixer.app to repository
[dockapps.git] / AlsaMixer.app / AMixer / AChannel.h
blob57ad075dc23045d5062f5b0f1a93e3df676934eb
1 // AChannel.h, Petr Hlavka, 2004
3 #ifndef ACHANNEL_H
4 #define ACHANNEL_H
6 #include "AMixer.h"
7 #include "AItem.h"
9 #include <alsa/asoundlib.h>
11 #define SNDCHID_T snd_mixer_selem_channel_id_t
13 class AItem;
15 class AChannel {
16 private:
17 SNDCHID_T id; // channel id (front left, f. right, ...)
18 AItem *aItem; // parent mixer item
19 public:
20 AChannel(AItem *item, SNDCHID_T cID); // ctor
21 ~AChannel(); // dtor
23 long getVolume(); // get channel volume
24 void setVolume(long value); // set channel volume
25 bool isMuted(); // return true, if channel is muted
28 #endif