blob: 084cb6e6404ee95d76607026ee55b1aa145dfdfb (
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
|
#ifndef __volume_h
#define __volume_h
#include <lib/base/ebase.h>
class eDVBVolumecontrol
{
private:
static eDVBVolumecontrol *instance;
eDVBVolumecontrol();
#ifdef SWIG
~eDVBVolumecontrol();
#endif
int openMixer();
void closeMixer(int fd);
bool muted;
int leftVol, rightVol;
int checkVolume(int vol);
public:
static eDVBVolumecontrol* getInstance();
void volumeUp(int left = 5, int right = 5);
void volumeDown(int left = 5, int right = 5);
void setVolume(int left, int right);
void volumeMute();
void volumeUnMute();
void volumeToggleMute();
int getVolume();
bool isMuted();
};
#endif //__volume_h
|