diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-02-21 12:22:00 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-02-21 12:22:00 +0000 |
| commit | 08f658b636c39705f2b919a185bb55ed7c053f59 (patch) | |
| tree | cc094ce1de1aa4fa40a4da43f87e348710997dc8 /src/plugins/Output/waveout/outputwaveout.cpp | |
| parent | be420a9ec95d103429e383ea1e9020832ca3b000 (diff) | |
| download | qmmp-08f658b636c39705f2b919a185bb55ed7c053f59.tar.gz qmmp-08f658b636c39705f2b919a185bb55ed7c053f59.tar.bz2 qmmp-08f658b636c39705f2b919a185bb55ed7c053f59.zip | |
waveout plugin: using software volume as fallback
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3275 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Output/waveout/outputwaveout.cpp')
| -rw-r--r-- | src/plugins/Output/waveout/outputwaveout.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/Output/waveout/outputwaveout.cpp b/src/plugins/Output/waveout/outputwaveout.cpp index 25791ff64..dc058ee6e 100644 --- a/src/plugins/Output/waveout/outputwaveout.cpp +++ b/src/plugins/Output/waveout/outputwaveout.cpp @@ -260,3 +260,11 @@ VolumeSettings VolumeWaveOut::volume() const vol.right = (long)HIWORD(data) * 100 / 0xFFFF + 1;
return vol;
}
+
+bool VolumeWaveOut::isSupported() const
+{
+ WAVEOUTCAPS waveCaps;
+ if(waveOutGetDevCaps(0,(LPWAVEOUTCAPS)&waveCaps, sizeof(WAVEOUTCAPS)) != MMSYSERR_NOERROR)
+ return false;
+ return (waveCaps.dwSupport & WAVECAPS_VOLUME) != 0;
+}
|
