servicemp3.cpp: more simple/flexible streaming detection
[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 #ifdef SWIG
12         ~eDVBVolumecontrol();
13 #endif
14         int openMixer();
15         void closeMixer(int fd);
16         
17         bool muted;
18         int leftVol, rightVol;
19         
20         int checkVolume(int vol);
21         
22 public:
23         static eDVBVolumecontrol* getInstance();
24
25         void volumeUp(int left = 5, int right = 5);
26         void volumeDown(int left = 5, int right = 5);
27
28         void setVolume(int left, int right);
29
30         void volumeMute();
31         void volumeUnMute();    
32         void volumeToggleMute();
33                         
34         int getVolume();
35         bool isMuted();
36 };
37
38 #endif //__volume_h