Changeset 5939
- Timestamp:
- Oct 14, 2009, 12:40:13 AM (15 years ago)
- Location:
- code/branches/sound3/src/orxonox/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound3/src/orxonox/sound/BaseSound.cc
r5929 r5939 65 65 if (alGetError() != AL_NO_ERROR) 66 66 { 67 COUT(2) << "Sound: OpenAL: Error playin sound " << this->audioSource_ << std::endl;67 COUT(2) << "Sound: OpenAL: Error playing sound " << this->audioSource_ << std::endl; 68 68 } 69 69 } … … 147 147 { 148 148 COUT(2) << "Sound: Trying fallback ogg loader" << std::endl; 149 this->audioBuffer_ = loadOggFile();149 this->audioBuffer_ = this->loadOggFile(); 150 150 } 151 151 -
code/branches/sound3/src/orxonox/sound/SoundManager.cc
r5929 r5939 45 45 { 46 46 if (!alutInitWithoutContext(NULL,NULL)) 47 ThrowException(InitialisationFailed, " OpenAL ALUT error: " << alutGetErrorString(alutGetError()));47 ThrowException(InitialisationFailed, "Sound: OpenAL ALUT error: " << alutGetErrorString(alutGetError())); 48 48 Loki::ScopeGuard alutExitGuard = Loki::MakeGuard(&alutExit); 49 49 50 COUT(3) << " OpenAL: Opening sound device..." << std::endl;50 COUT(3) << "Sound: OpenAL: Opening sound device..." << std::endl; 51 51 this->device_ = alcOpenDevice(NULL); 52 52 if (this->device_ == NULL) 53 53 { 54 COUT(0) << " OpenaAL: Could not open sound device. Have you installed OpenAL?" << std::endl;54 COUT(0) << "Sound: OpenaAL: Could not open sound device. Have you installed OpenAL?" << std::endl; 55 55 #ifdef ORXONOX_PLATFORM_WINDOWS 56 COUT(0) << " Just getting the DLL with the dependencies is not enough for Windows (esp. Windows 7)!" << std::endl;56 COUT(0) << "Sound: Just getting the DLL with the dependencies is not enough for Windows (esp. Windows 7)!" << std::endl; 57 57 #endif 58 ThrowException(InitialisationFailed, " OpenAL error: Could not open sound device.");58 ThrowException(InitialisationFailed, "Sound: OpenAL error: Could not open sound device."); 59 59 } 60 60 Loki::ScopeGuard closeDeviceGuard = Loki::MakeGuard(&alcCloseDevice, this->device_); 61 61 62 COUT(3) << " OpenAL: Sound device opened" << std::endl;62 COUT(3) << "Sound: OpenAL: Sound device opened" << std::endl; 63 63 this->context_ = alcCreateContext(this->device_, NULL); 64 64 if (this->context_ == NULL) 65 ThrowException(InitialisationFailed, " OpenAL error: Could not create sound context");65 ThrowException(InitialisationFailed, "Sound: OpenAL error: Could not create sound context"); 66 66 Loki::ScopeGuard desroyContextGuard = Loki::MakeGuard(&alcDestroyContext, this->context_); 67 67 68 68 if (alcMakeContextCurrent(this->context_) == AL_TRUE) 69 COUT(3) << " OpenAL: Context " << this->context_ << " loaded" << std::endl;69 COUT(3) << "Sound: OpenAL: Context " << this->context_ << " loaded" << std::endl; 70 70 71 71 COUT(4) << "Sound: OpenAL ALUT version: " << alutGetMajorVersion() << "." << alutGetMinorVersion() << std::endl; … … 73 73 const char* str = alutGetMIMETypes(ALUT_LOADER_BUFFER); 74 74 if (str == NULL) 75 COUT(2) << " OpenAL ALUT error: " << alutGetErrorString(alutGetError()) << std::endl;75 COUT(2) << "Sound: OpenAL ALUT error: " << alutGetErrorString(alutGetError()) << std::endl; 76 76 else 77 COUT(4) << " OpenAL ALUT supported MIME types: " << str << std::endl;77 COUT(4) << "Sound: OpenAL ALUT supported MIME types: " << str << std::endl; 78 78 79 79 GameMode::setPlaysSound(true);
Note: See TracChangeset
for help on using the changeset viewer.