blob: 9cbebf5d4371a69356ccd5ff473b30627d0a8175 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/*
* sndctl - a plugin for the Video Disk Recorder
* file: mixer.h
* description: header file for mixer.c
*
* author: Thomas Hildebrandt <toxym@web.de>
*
* inspired by and reengineered from 'avolctl'
* thanks to Martin Prochnow <nordlichtl@martins-kabuff.de>
*/
#ifndef SNDCTL_MIXER_H
#define SNDCTL_MIXER_H
/*
* cMixer
* parent class for all types of mixer devices
*/
class cControlId {
private:
string name;
int controlNr;
string soundCardId;
public:
cControlId(string SoundCardId, string DisplayName, int controlNr);
cControlId();
bool operator==(cControlId const& b);
string getDisplayName();
int getControlNr();
string getSoundCardId();
};
class cMixer {
protected:
struct control{
long min;
long max;
string name;
long limitL;
long limitU;
char op;
int value;
long volume;
string soundCardId;
int controlNr;
};
vector<control *> vControls;
virtual void Volumes( void ) = 0;
public:
cMixer();
virtual ~cMixer();
vector<cControlId> GetControls( void );
void Update( cSoundSet* );
void Volume( int );
int CountControls( void );
virtual bool IsMixer( string ) = 0;
};
#endif //SNDCTL_MIXER_H
|