Changeset 21720 for branches/gcc-kmk/src/winmm/initwinmm.cpp
- Timestamp:
- Oct 19, 2011, 11:26:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/winmm/initwinmm.cpp
r21358 r21720 46 46 #include "winmmtype.h" 47 47 #include "waveoutbase.h" 48 #include <win \options.h>48 #include <win/options.h> 49 49 #include "initwinmm.h" 50 50 #include <custombuild.h> … … 122 122 WaveOut::setDefaultVolume(dwVolume); 123 123 124 if(fMMPMAvailable == TRUE) 124 if(fMMPMAvailable == TRUE) 125 125 {//if audio access wasn't disabled already, check if mmpm2 is installed 126 126 // try to load the MDM library, not MMPM directly!!! … … 130 130 // this system has no MMPM :-( 131 131 fMMPMAvailable = FALSE; 132 } 132 } 133 133 else 134 134 { … … 140 140 { 141 141 fMMPMAvailable = FALSE; 142 } 142 } 143 143 else 144 144 { … … 161 161 } 162 162 163 if(fMMPMAvailable && RegOpenKeyA(HKEY_LOCAL_MACHINE, CUSTOM_BUILD_OPTIONS_KEY, &hKey) == 0) 163 if(fMMPMAvailable && RegOpenKeyA(HKEY_LOCAL_MACHINE, CUSTOM_BUILD_OPTIONS_KEY, &hKey) == 0) 164 164 { 165 165 DWORD dwSize, dwType; … … 184 184 fMMPMAvailable = FALSE; 185 185 } 186 else 186 else 187 187 { 188 188 // Test for buggy audio drivers to turn off audio automagically 189 for(int i=0;i<sizeof(szBuggyAudio)/sizeof(szBuggyAudio[0]);i++) 189 for(int i=0;i<sizeof(szBuggyAudio)/sizeof(szBuggyAudio[0]);i++) 190 190 { 191 191 if(!strncmp(szPDDName, szBuggyAudio[i], strlen(szBuggyAudio[i]))) {
Note:
See TracChangeset
for help on using the changeset viewer.