]> 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 aaca87b9f01fec8d5161ff1e8357ce006f4619a2..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
@@ -24,9 +24,9 @@
 #ifndef __FGFX_HXX
 #define __FGFX_HXX 1
 
-#include <Main/fgfs.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
 
-class Sound;
+class SGXmlSound;
 
 /**
  * Generator for FlightGear sound effects.
@@ -35,7 +35,7 @@ class Sound;
  * on current flight conditions.  The sound manager must be initialized
  * before this object is.
  */
-class FGFX : public FGSubsystem
+class FGFX : public SGSubsystem
 {
 
 public:
@@ -51,7 +51,13 @@ public:
 
 private:
 
-  vector<Sound *> _sound;
+  vector<SGXmlSound *> _sound;
+
+  bool last_pause;
+  double last_volume;
+
+  SGPropertyNode *_pause;
+  SGPropertyNode *_volume;
 
 };