Changeset 6394 for code/branches/presentation2/src/orxonox/sound
- Timestamp:
- Dec 22, 2009, 2:07:44 PM (15 years ago)
- Location:
- code/branches/presentation2/src/orxonox/sound
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/AmbientSound.cc
r6388 r6394 113 113 if (GameMode::playsSound()) 114 114 { 115 std::string path = "ambient/" + MoodManager::getInstance().getMood() + "/"+ source;115 const std::string& path = "ambient/" + MoodManager::getInstance().getMood() + '/' + source; 116 116 shared_ptr<ResourceInfo> fileInfo = Resource::getInfo(path); 117 117 if (fileInfo != NULL) -
code/branches/presentation2/src/orxonox/sound/SoundBuffer.cc
r6378 r6394 57 57 DataStreamPtr dataStream = Resource::open(fileInfo); 58 58 59 std::string extension(this->filename_.substr(this->filename_.find_last_of('.') + 1));59 const std::string& extension = this->filename_.substr(this->filename_.find_last_of('.') + 1); 60 60 if (getLowercase(extension) == "ogg") 61 61 { -
code/branches/presentation2/src/orxonox/sound/SoundManager.cc
r6388 r6394 92 92 { 93 93 this->deviceNames_.push_back(devices); 94 COUT(4) << "\""<< devices << "\", ";94 COUT(4) << '"' << devices << "\", "; 95 95 devices += strlen(devices) + 1; 96 96 if (*devices == '\0') … … 100 100 101 101 // Open the selected device 102 COUT(3) << "Sound: Opening device \"" << renderDevice << "\""<< std::endl;102 COUT(3) << "Sound: Opening device \"" << renderDevice << '\' << std::endl; 103 103 this->device_ = alcOpenDevice(renderDevice.c_str()); 104 104 */
Note: See TracChangeset
for help on using the changeset viewer.