dockapps/AlsaMixer.app/AMixer/AItem.h

40 lines
781 B
C
Raw Normal View History

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