Changeset 6071 for code/branches/sound3/src/orxonox/sound/SoundManager.cc
- Timestamp:
- Nov 15, 2009, 10:36:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound3/src/orxonox/sound/SoundManager.cc
r6069 r6071 40 40 #include "core/GameMode.h" 41 41 #include "core/ScopedSingletonManager.h" 42 #include "core/Resource.h"43 42 #include "core/ConfigValueIncludes.h" 44 43 #include "BaseSound.h" 45 #include "MoodManager.h"46 44 #include "AmbientSound.h" 47 45 … … 223 221 } 224 222 225 //! Get the current mood and return the full path string to the requested sound.226 std::string SoundManager::getAmbientPath(const std::string& source)227 {228 std::string path = "ambient/" + MoodManager::getInstance().getMood() + "/" + source;229 shared_ptr<ResourceInfo> fileInfo = Resource::getInfo(path);230 if (fileInfo == NULL)231 {232 return "";233 }234 return path;235 }236 237 223 void SoundManager::fadeIn(AmbientSound* sound) 238 224 {
Note: See TracChangeset
for help on using the changeset viewer.