Changeset 3196 for code/trunk/src/orxonox/sound/SoundManager.cc
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/sound/SoundManager.cc
r3108 r3196 27 27 */ 28 28 29 #include "SoundManager.h" 30 29 31 #include <AL/alut.h> 30 32 33 #include "util/Math.h" 31 34 #include "orxonox/CameraManager.h" 32 35 #include "orxonox/objects/worldentities/Camera.h" 33 #include "util/Math.h"34 36 #include "SoundBase.h" 35 #include "SoundManager.h"36 37 37 38 namespace orxonox 38 39 { 40 SoundManager* SoundManager::singletonRef_s = NULL; 39 41 ALCdevice* SoundManager::device_s = NULL; 40 42 … … 44 46 SoundManager::SoundManager() 45 47 { 48 assert(singletonRef_s == NULL); 49 singletonRef_s = this; 50 46 51 this->soundavailable_ = true; 47 52 if(!alutInitWithoutContext(NULL,NULL)) … … 90 95 SoundManager::~SoundManager() 91 96 { 97 assert(singletonRef_s != NULL); 98 singletonRef_s = NULL; 99 92 100 alcDestroyContext(this->context_); 93 101 alcCloseDevice(SoundManager::device_s);
Note: See TracChangeset
for help on using the changeset viewer.