]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/fg_fx.hxx
Sync with latest JSBSim CVS
[flightgear.git] / src / Sound / fg_fx.hxx
index b24825fcfb8ec414cf76634361ab34f1644025d2..490c1a14c368688038006cdc77f17bb27d3a004e 100644 (file)
@@ -56,9 +56,14 @@ public:
   virtual void update ();
 
 private:
-  bool _is_cranking;
-  bool _is_stalling;
-  bool _is_rumbling;
+
+  void set_playing (const char * soundName, bool state = true);
+
+  static const int MAX_GEAR = 20;
+
+  double _old_flap_position;
+
+  bool _gear_on_ground[MAX_GEAR];
 
                                // looped sounds
   FGSimpleSound * _engine;
@@ -72,6 +77,12 @@ private:
   FGSimpleSound * _squeal;
   FGSimpleSound * _click;
 
+                               // Cached property nodes.
+  const SGPropertyNode * _engine_running_prop;
+  const SGPropertyNode * _engine_cranking_prop;
+  const SGPropertyNode * _stall_warning_prop;
+  const SGPropertyNode * _flaps_prop;
+
 };