Changeset 8071 for code/branches/kicklib/src/orxonox/sound/SoundManager.cc
- Timestamp:
- Mar 14, 2011, 3:53:38 AM (14 years ago)
- Location:
- code/branches/kicklib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib
-
code/branches/kicklib/src/orxonox/sound/SoundManager.cc
r7858 r8071 31 31 #include "SoundManager.h" 32 32 33 #if defined(__APPLE__) 34 #include <ALUT/alut.h> 35 #else 33 36 #include <AL/alut.h> 37 #endif 34 38 #include <utility> 35 39 #include <loki/ScopeGuard.h> … … 73 77 this->bDestructorCalled_ = false; 74 78 79 // Clear error messages (might be problematic on some systems) 80 alGetError(); 81 alutGetError(); 82 75 83 // See whether we even want to load 76 84 bool bDisableSound_ = false; 77 85 SetConfigValue(bDisableSound_, false); 78 86 if (bDisableSound_) 79 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 80 87 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 81 88 if (!alutInitWithoutContext(NULL, NULL)) 82 89 ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError())); … … 126 133 GameMode::setPlaysSound(true); 127 134 Loki::ScopeGuard resetPlaysSoundGuard = Loki::MakeGuard(&GameMode::setPlaysSound, false); 128 135 129 136 // Get some information about the sound 130 137 if (const char* version = alGetString(AL_VERSION)) 131 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 138 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 132 139 if (const char* vendor = alGetString(AL_VENDOR)) 133 140 COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.