diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-02-16 10:25:16 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-02-16 10:25:16 +0000 |
| commit | 053dc1a32b740033795b6be315d6617e4a93c65e (patch) | |
| tree | ac54002dba0c9e2f68d299749e301317ee69d6f5 /src/plugins/Output/directsound/outputdirectsound.h | |
| parent | fa890e457e716e61fc94f1c719ffbb5a4fee2ba2 (diff) | |
| download | qmmp-053dc1a32b740033795b6be315d6617e4a93c65e.tar.gz qmmp-053dc1a32b740033795b6be315d6617e4a93c65e.tar.bz2 qmmp-053dc1a32b740033795b6be315d6617e4a93c65e.zip | |
direct sound plugin: added volume control
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4092 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Output/directsound/outputdirectsound.h')
| -rw-r--r-- | src/plugins/Output/directsound/outputdirectsound.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/Output/directsound/outputdirectsound.h b/src/plugins/Output/directsound/outputdirectsound.h index c78d88fb4..bae67efbe 100644 --- a/src/plugins/Output/directsound/outputdirectsound.h +++ b/src/plugins/Output/directsound/outputdirectsound.h @@ -28,6 +28,8 @@ #include <qmmp/volume.h>
#include <qmmp/output.h>
+class VolumeDirectSound;
+
/**
@author Ilya Kotov <forkotov02@hotmail.ru>
*/
@@ -47,6 +49,12 @@ public: void resume();
void reset();
+ //volume control
+ static OutputDirectSound *instance;
+ static VolumeDirectSound *volumeControl;
+ IDirectSoundBuffer8 *secondaryBuffer();
+
+
private:
// helper functions
void status();
@@ -59,6 +67,9 @@ private: DWORD m_dsBufferAt;
};
+/**
+ @author Ilya Kotov <forkotov02@hotmail.ru>
+*/
class VolumeDirectSound : public Volume
{
public:
@@ -67,6 +78,10 @@ public: void setVolume(const VolumeSettings &vol);
VolumeSettings volume() const;
+ void restore();
+
+private:
+ VolumeSettings m_volume;
};
|
