Changeset 8043 for code/branches/mac_osx/src/orxonox
- Timestamp:
- Mar 8, 2011, 6:26:51 AM (14 years ago)
- Location:
- code/branches/mac_osx/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/mac_osx/src/orxonox/MoodManager.cc
r7767 r8043 50 50 51 51 // Checking for the existence of the folder for the default mood 52 const std::string& path a= "ambient/" + MoodManager::defaultMood_ + "/.";53 if (!Resource::exists(path a))52 const std::string& path = "ambient/" + MoodManager::defaultMood_ + "/."; 53 if (!Resource::exists(path)) 54 54 { 55 55 // TODO: Non-fatal error handling (non-critical resource missing) -
code/branches/mac_osx/src/orxonox/sound/SoundManager.cc
r7767 r8043 83 83 SetConfigValue(bDisableSound_, false); 84 84 if (bDisableSound_) 85 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 85 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 86 86 if (!alutInitWithoutContext(NULL, NULL)) 87 87 ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError())); … … 131 131 GameMode::setPlaysSound(true); 132 132 Loki::ScopeGuard resetPlaysSoundGuard = Loki::MakeGuard(&GameMode::setPlaysSound, false); 133 133 134 134 // Get some information about the sound 135 135 if (const char* version = alGetString(AL_VERSION)) 136 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 136 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 137 137 if (const char* vendor = alGetString(AL_VENDOR)) 138 138 COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.