Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2838 in orxonox.OLD for orxonox/branches/sound/src/sound_control.h


Ignore:
Timestamp:
Nov 12, 2004, 2:41:26 PM (21 years ago)
Author:
simon
Message:

branches/sound: instance can now be freed via static deleteInstance()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/sound/src/sound_control.h

    r2815 r2838  
    77
    88 public:
    9   SoundControl* getObject();
     9  static SoundControl* getInstance();
     10  static void deleteInstance();
    1011  void setNumberOfChannels(int number_of channels);
    1112  int playMod(char* filename);
     
    2122  void trackSelect();
    2223
     24protected:
     25  void initialise();
     26  SoundControl();
     27  ~SoundControl();
     28
    2329private:
    24   void initialise();
    25   //SoundControl singleton object must be made via getObject()
    26   SoundControl();
    27   ~SoundControl()
     30  static SoundControl* instance;
     31
    2832}
    2933
Note: See TracChangeset for help on using the changeset viewer.