dockapps/AlsaMixer.app/AMixer/AChannel.h

29 lines
590 B
C
Raw Normal View History

// AChannel.h, Petr Hlavka, 2004
#ifndef ACHANNEL_H
#define ACHANNEL_H
#include "AMixer.h"
#include "AItem.h"
#include <alsa/asoundlib.h>
#define SNDCHID_T snd_mixer_selem_channel_id_t
class AItem;
class AChannel {
private:
SNDCHID_T id; // channel id (front left, f. right, ...)
AItem *aItem; // parent mixer item
public:
AChannel(AItem *item, SNDCHID_T cID); // ctor
~AChannel(); // dtor
long getVolume(); // get channel volume
void setVolume(long value); // set channel volume
bool isMuted(); // return true, if channel is muted
};
#endif