Changeset 8903 for code/trunk
- Timestamp:
- Oct 22, 2011, 3:28:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/sound/SoundManager.cc
r8902 r8903 80 80 if (bDisableSound_) 81 81 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 82 /* if (!alutInitWithoutContext(NULL, NULL)) 82 #if !defined(ORXONOX_PLATFORM_APPLE) 83 if (!alutInitWithoutContext(NULL, NULL)) 83 84 ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError())); 84 Loki::ScopeGuard alutExitGuard = Loki::MakeGuard(&alutExit);*/ 85 Loki::ScopeGuard alutExitGuard = Loki::MakeGuard(&alutExit); 86 #endif 85 87 86 88 /* … … 149 151 150 152 // Disarm guards 151 // alutExitGuard.Dismiss(); 153 #if !defined(ORXONOX_PLATFORM_APPLE) 154 alutExitGuard.Dismiss(); 155 #endif 152 156 closeDeviceGuard.Dismiss(); 153 157 desroyContextGuard.Dismiss(); … … 199 203 alcCloseDevice(this->device_); 200 204 #endif 201 /* if (!alutExit()) 202 orxout(internal_error, context::sound) << "Closing ALUT failed: " << alutGetErrorString(alutGetError()) << endl;*/ 205 #if !defined(ORXONOX_PLATFORM_APPLE) 206 if (!alutExit()) 207 orxout(internal_error, context::sound) << "Closing ALUT failed: " << alutGetErrorString(alutGetError()) << endl; 208 #endif 203 209 } 204 210
Note: See TracChangeset
for help on using the changeset viewer.