X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fglobals.hxx;h=06490eaf38f9a60af0012464e557306d49929b20;hb=224afcc7e4cb4191be15f3df025164fcd83f5102;hp=e778590ddb092b18b1500042b759d43c14ab7065;hpb=86f462933d0d7130e4e688183976620ed2ddb5ae;p=flightgear.git diff --git a/src/Main/globals.hxx b/src/Main/globals.hxx index e778590dd..06490eaf3 100644 --- a/src/Main/globals.hxx +++ b/src/Main/globals.hxx @@ -52,6 +52,7 @@ class SGTime; class SGEventMgr; class SGSubsystemMgr; class SGSubsystem; +class SGSoundMgr; class FGAIMgr; class FGATCMgr; @@ -93,6 +94,7 @@ private: FGRenderer *renderer; SGSubsystemMgr *subsystem_mgr; SGEventMgr *event_mgr; + SGSoundMgr *soundmgr; // Number of milliseconds elapsed since the start of the program. double sim_time_sec; @@ -198,6 +200,8 @@ public: virtual SGEventMgr *get_event_mgr () const; + virtual SGSoundMgr *get_soundmgr () const; + inline double get_sim_time_sec () const { return sim_time_sec; } inline void inc_sim_time_sec (double dt) { sim_time_sec += dt; } inline void set_sim_time_sec (double t) { sim_time_sec = t; }