Changeset 3184 for code/branches/pch/src/orxonox/sound/SoundManager.cc
- Timestamp:
- Jun 15, 2009, 11:45:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/sound/SoundManager.cc
r3133 r3184 38 38 namespace orxonox 39 39 { 40 SoundManager* SoundManager::singletonRef_s = NULL; 40 41 ALCdevice* SoundManager::device_s = NULL; 41 42 … … 45 46 SoundManager::SoundManager() 46 47 { 48 assert(singletonRef_s == NULL); 49 singletonRef_s = this; 50 47 51 this->soundavailable_ = true; 48 52 if(!alutInitWithoutContext(NULL,NULL)) … … 91 95 SoundManager::~SoundManager() 92 96 { 97 assert(singletonRef_s != NULL); 98 singletonRef_s = NULL; 99 93 100 alcDestroyContext(this->context_); 94 101 alcCloseDevice(SoundManager::device_s);
Note: See TracChangeset
for help on using the changeset viewer.