]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/fg_fx.hxx
Update 'magic' for more consistant cross platform padding.
[flightgear.git] / src / Sound / fg_fx.hxx
index 6e59abb67b0b0433e83a0255833550a7b8d2f6ec..2c80d1c04bf112e6174a5b81793d4d5ac5ec900e 100644 (file)
@@ -3,7 +3,7 @@
 // Started by David Megginson, October 2001
 // (Reuses some code from main.cxx, probably by Curtis Olson)
 //
-// Copyright (C) 2001  Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2001  Curtis L. Olson - http://www.flightgear.org/~curt
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
 #ifndef __FGFX_HXX
 #define __FGFX_HXX 1
 
-#include <simgear/compiler.h>
-
-#include "fg_sound.hxx"
+#include <simgear/structure/subsystem_mgr.hxx>
 
+class SGXmlSound;
 
 /**
  * Generator for FlightGear sound effects.
@@ -36,7 +35,7 @@
  * on current flight conditions.  The sound manager must be initialized
  * before this object is.
  */
-class FGFX : public FGSubsystem
+class FGFX : public SGSubsystem
 {
 
 public:
@@ -45,13 +44,20 @@ public:
   virtual ~FGFX ();
 
   virtual void init ();
+  virtual void reinit ();
   virtual void bind ();
   virtual void unbind ();
-  virtual void update (int dt);
+  virtual void update (double dt);
 
 private:
 
-  vector<FGSound *> _sound;
+  vector<SGXmlSound *> _sound;
+
+  bool last_pause;
+  double last_volume;
+
+  SGPropertyNode *_pause;
+  SGPropertyNode *_volume;
 
 };