Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2009, 11:27:00 PM (14 years ago)
Author:
rgrieder
Message:

Added config value to disable sound entirely.
Also added InitialisationAbortedException to be used by singletons in order not to be constructed, but nicely telling the user (only for those singletons who are allowed to fail!).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/SoundManager.cc

    r6370 r6373  
    6969    {
    7070        RegisterRootObject(SoundManager);
     71
     72        // See whether we even want to load
     73        bool bDisableSound_ = false;
     74        SetConfigValue(bDisableSound_, false);
     75        if (bDisableSound_)
     76            ThrowException(InitialisationAborted, "Sound: Not loading at all");
    7177
    7278        if (!alutInitWithoutContext(NULL, NULL))
Note: See TracChangeset for help on using the changeset viewer.