dockapps/AlsaMixer.app/AMixer/AChannel.h
Wade Berrier f331064eae Add AlsaMixer.app to repository
http://dockapps.windowmaker.org/file.php/id/253 shows a version available from

http://www.stud.fit.vutbr.cz/~xhlavk00/AlsaMixer.app/

but it's a dead link.

Check in the version from

http://dockapps.windowmaker.org/download.php/id/517/AlsaMixer.app-0.1.tar.gz

Untarred and removed version from directory.  No other changes.

Signed-off-by: Wade Berrier <wberrier@gmail.com>
2012-10-02 23:26:31 +01:00

29 lines
590 B
C++

// 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