f331064eae
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>
40 lines
781 B
C++
40 lines
781 B
C++
// AItem.h, Petr Hlavka, 2004
|
|
|
|
#ifndef AITEM_H
|
|
#define AITEM_H
|
|
|
|
#include "AMixer.h"
|
|
#include "AChannel.h"
|
|
|
|
#include <alsa/asoundlib.h>
|
|
#include <vector>
|
|
|
|
|
|
class AChannel;
|
|
class AMixer;
|
|
|
|
class AItem {
|
|
private:
|
|
AMixer *mixer; // parent mixer
|
|
std::vector<AChannel *> pbChannels; // item channels
|
|
|
|
long minPVolume, maxPVolume; // min/max playback volume
|
|
bool hPVolume; // has Playback volume
|
|
bool hPSwitch; // has Playback switch
|
|
|
|
public:
|
|
snd_mixer_elem_t *aElem; // mixer item element
|
|
const char *name; // item name
|
|
|
|
AItem(AMixer *m, snd_mixer_elem_t *e); // ctor
|
|
~AItem(); // dtor
|
|
|
|
void setVolumePerc(unsigned int percent);
|
|
unsigned int getVolumePerc();
|
|
bool isMuted();
|
|
void mute();
|
|
void unmute();
|
|
};
|
|
|
|
#endif
|