Changeset 4519 in orxonox.OLD for orxonox/trunk/src/lib/sound
- Timestamp:
- Jun 6, 2005, 2:36:04 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/sound/sound_engine.cc
r4506 r4519 174 174 */ 175 175 SoundEngine* SoundEngine::singletonRef = NULL; 176 177 /**178 \returns a Pointer to this Class179 */180 SoundEngine* SoundEngine::getInstance(void)181 {182 if (!SoundEngine::singletonRef)183 SoundEngine::singletonRef = new SoundEngine();184 return SoundEngine::singletonRef;185 }186 176 187 177 /** -
orxonox/trunk/src/lib/sound/sound_engine.h
r4506 r4519 71 71 72 72 public: 73 static SoundEngine* getInstance(void);74 73 virtual ~SoundEngine(void); 74 /** \returns a Pointer to the only object of this Class */ 75 inline static SoundEngine* getInstance(void) { if (!singletonRef) singletonRef = new SoundEngine(); return singletonRef; }; 75 76 76 77 SoundSource* createSource(const char* fileName, PNode* sourceNode = NULL);
Note: See TracChangeset
for help on using the changeset viewer.