Changeset 7767 for code/branches/ois_update/src/orxonox
- Timestamp:
- Dec 15, 2010, 5:45:16 PM (14 years ago)
- Location:
- code/branches/ois_update/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ois_update/src/orxonox/MoodManager.cc
r7284 r7767 50 50 51 51 // Checking for the existence of the folder for the default mood 52 const std::string& path = "ambient/" + MoodManager::defaultMood_ + "/.";53 if (!Resource::exists(path ))52 const std::string& patha = "ambient/" + MoodManager::defaultMood_ + "/."; 53 if (!Resource::exists(patha)) 54 54 { 55 55 // TODO: Non-fatal error handling (non-critical resource missing) 56 56 COUT(2) << "Mood Warning: Folder for default mood (" << MoodManager::defaultMood_ << ") does not exist!" << std::endl; 57 57 } 58 59 // @TODO 60 // Creating a vector of the available moods to enable easy mood selection by Lua/CEGUI 58 61 } 59 62 -
code/branches/ois_update/src/orxonox/sound/AmbientSound.cc
r6417 r7767 48 48 49 49 // Ambient sounds always fade in 50 this->setVolume(0 );50 this->setVolume(0.0f); 51 51 this->registerVariables(); 52 52 } -
code/branches/ois_update/src/orxonox/sound/SoundManager.cc
r7701 r7767 83 83 SetConfigValue(bDisableSound_, false); 84 84 if (bDisableSound_) 85 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 86 85 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 87 86 if (!alutInitWithoutContext(NULL, NULL)) 88 87 ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError())); … … 132 131 GameMode::setPlaysSound(true); 133 132 Loki::ScopeGuard resetPlaysSoundGuard = Loki::MakeGuard(&GameMode::setPlaysSound, false); 134 133 135 134 // Get some information about the sound 136 135 if (const char* version = alGetString(AL_VERSION)) 137 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 136 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 138 137 if (const char* vendor = alGetString(AL_VENDOR)) 139 138 COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.