wmmemfree: Include only necessary headers.
[dockapps.git] / AlsaMixer.app / AMixer / AChannel.h
blobbc1b962dab17c197bcbdaa7ab3f2d3542b3a881b
1 // AChannel.h
2 //
3 // Copyright (C) 2004, Petr Hlavka
4 //
5 // SPDX-License-Identifier: GPL-2.0+
7 #ifndef ACHANNEL_H
8 #define ACHANNEL_H
10 #include "AMixer.h"
11 #include "AItem.h"
13 #include <alsa/asoundlib.h>
15 #define SNDCHID_T snd_mixer_selem_channel_id_t
17 class AItem;
19 class AChannel {
20 private:
21 SNDCHID_T id; // channel id (front left, f. right, ...)
22 AItem *aItem; // parent mixer item
23 public:
24 AChannel(AItem *item, SNDCHID_T cID); // ctor
25 ~AChannel(); // dtor
27 long getVolume(); // get channel volume
28 void setVolume(long value); // set channel volume
29 bool isMuted(); // return true, if channel is muted
32 #endif