#include <Navaids/navlist.hxx>
#include <Scenery/scenery.hxx>
#include <Scenery/tilemgr.hxx>
+#include <Sound/fg_fx.hxx>
+#include <Sound/soundmgr.hxx>
#include <Time/event.hxx>
#include <Time/light.hxx>
#include <Time/sunpos.hxx>
fgInitCommands();
+ ////////////////////////////////////////////////////////////////////
+ // Initialize the sound subsystem.
+ ////////////////////////////////////////////////////////////////////
+
+ globals->set_soundmgr(new FGSoundMgr);
+ globals->get_soundmgr()->init();
+ globals->get_soundmgr()->bind();
+
+
+ ////////////////////////////////////////////////////////////////////
+ // Initialize the sound-effects subsystem.
+ ////////////////////////////////////////////////////////////////////
+ globals->set_fx(new FGFX);
+ globals->get_fx()->init();
+ globals->get_fx()->bind();
+
+
////////////////////////////////////////////////////////////////////
// Initialize the radio stack subsystem.
////////////////////////////////////////////////////////////////////
#include <simgear/misc/commands.hxx>
#include <simgear/misc/props.hxx>
-// #include <Controls/controls.hxx>
-// #include <Sound/soundmgr.hxx>
-// #include "viewmgr.hxx"
-
SG_USING_STD( vector );
SG_USING_STD( string );
// Forward declarations
class FGControls;
class FGSoundMgr;
+class FGFX;
class FGViewMgr;
class FGViewer;
// sound manager
FGSoundMgr *soundmgr;
+ // sound-effects manager
+ FGFX *fx;
+
// control input state
FGControls *controls;
inline FGSoundMgr *get_soundmgr() const { return soundmgr; }
inline void set_soundmgr( FGSoundMgr *sm ) { soundmgr = sm; }
+ inline FGFX *get_fx() const { return fx; }
+ inline void set_fx( FGFX *x ) { fx = x; }
+
inline FGControls *get_controls() const { return controls; }
inline void set_controls( FGControls *c ) { controls = c; }