Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2009, 11:45:29 PM (15 years ago)
Author:
rgrieder
Message:

Converted SoundManager into a more suitable singleton.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/sound/SoundManager.h

    r3177 r3184  
    3030#include "OrxonoxPrereqs.h"
    3131
     32#include <cassert>
    3233#include <list>
    3334#include "interfaces/Tickable.h"
     
    5152        bool isSoundAvailable();
    5253
     54        static SoundManager& getInstance() { assert(singletonRef_s); return *singletonRef_s; }
     55
    5356    private:
    5457        static ALCdevice* device_s;
     
    5760        bool soundavailable_;
    5861
     62        static SoundManager* singletonRef_s;
    5963    }; // class SoundManager
    6064} // namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.