Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4519 in orxonox.OLD for orxonox/trunk/src/lib/sound/sound_engine.h


Ignore:
Timestamp:
Jun 6, 2005, 2:36:04 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: changed all getInstances into inline functions to save some (minor) time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/sound/sound_engine.h

    r4506 r4519  
    7171
    7272 public:
    73   static SoundEngine* getInstance(void);
    7473  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; };
    7576
    7677  SoundSource* createSource(const char* fileName, PNode* sourceNode = NULL);
Note: See TracChangeset for help on using the changeset viewer.