Changeset 8351 for code/trunk/src/orxonox/sound/SoundManager.cc
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/sound/SoundManager.cc
r7858 r8351 31 31 #include "SoundManager.h" 32 32 33 #include <AL/alut.h>34 33 #include <utility> 34 #include <alut.h> 35 35 #include <loki/ScopeGuard.h> 36 36 … … 73 73 this->bDestructorCalled_ = false; 74 74 75 // Clear error messages (might be problematic on some systems) 76 alGetError(); 77 alutGetError(); 78 75 79 // See whether we even want to load 76 80 bool bDisableSound_ = false; … … 78 82 if (bDisableSound_) 79 83 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 80 81 84 if (!alutInitWithoutContext(NULL, NULL)) 82 85 ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError())); … … 107 110 this->device_ = alcOpenDevice(NULL); 108 111 if (this->device_ == NULL) 109 {110 COUT(1) << "Sound: Could not open sound device. Have you installed OpenAL?" << std::endl;111 #ifdef ORXONOX_PLATFORM_WINDOWS112 COUT(1) << "Sound: Just getting the DLL with the dependencies is not enough for Windows (esp. Windows 7)!" << std::endl;113 #endif114 112 ThrowException(InitialisationFailed, "Sound Error: Could not open sound device."); 115 }116 113 Loki::ScopeGuard closeDeviceGuard = Loki::MakeGuard(&alcCloseDevice, this->device_); 117 114 … … 327 324 ALenum error = alGetError(); 328 325 if (error == AL_INVALID_VALUE) 326 // @TODO: Follow this constantly appearing, nerve-racking warning 329 327 COUT(2) << "Sound: OpenAL: Invalid listener position" << std::endl; 330 328 }
Note: See TracChangeset
for help on using the changeset viewer.