*** empty log message ***
[enigma2.git] / lib / dvb / volume.h
1 #ifndef __volume_h
2 #define __volume_h
3
4 #include <lib/base/ebase.h>
5
6 class eDVBVolumecontrol
7 {
8 private:
9         static eDVBVolumecontrol *instance;
10         eDVBVolumecontrol();
11         
12         int openMixer();
13         void closeMixer(int fd);
14         
15         bool muted;
16         int leftVol, rightVol;
17         
18         int checkVolume(int vol);
19         
20 public:
21         static eDVBVolumecontrol* getInstance();
22
23         void volumeUp(int left = 5, int right = 5);
24         void volumeDown(int left = 5, int right = 5);
25
26         void setVolume(int left, int right);
27
28         void volumeMute();
29         void volumeUnMute();    
30         void volumeToggleMute();
31                         
32         int getVolume();
33         bool isMuted();
34 };
35
36 #endif //__volume_h