Changeset 8351 for code/trunk/src/orxonox/sound
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (14 years ago)
- Location:
- code/trunk/src/orxonox/sound
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/sound/AmbientSound.cc
r8079 r8351 42 42 43 43 // Ambient sounds always fade in 44 this->setVolume(0 );44 this->setVolume(0.0f); 45 45 } 46 46 -
code/trunk/src/orxonox/sound/SoundBuffer.cc
r6502 r8351 30 30 #include "SoundBuffer.h" 31 31 32 #include < AL/alut.h>32 #include <alut.h> 33 33 #include <vorbis/vorbisfile.h> 34 34 -
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 } -
code/trunk/src/orxonox/sound/SoundManager.h
r7858 r8351 72 72 // tolua_begin 73 73 static SoundManager& getInstance() { return Singleton<SoundManager>::getInstance(); } 74 static bool exists() { return Singleton<SoundManager>::exists(); } 74 75 75 76 std::string getDeviceName(unsigned int index) const -
code/trunk/src/orxonox/sound/WorldSound.cc
r7284 r8351 30 30 #include "WorldSound.h" 31 31 32 #include <AL/alut.h> 32 #include <alut.h> 33 33 34 #include "util/Math.h" 34 35 #include "core/CoreIncludes.h"
Note: See TracChangeset
for help on using the changeset viewer.