]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/xmlsound.hxx
Introduce "PRESERVE" flag to protect properties on sim reset.
[simgear.git] / simgear / sound / xmlsound.hxx
index 141f5eef299bf1cbb7d98ea5735d7b59aee2d8e9..0b3f132a45b546237ff782ef862f2db5250789d8 100644 (file)
@@ -104,7 +104,7 @@ public:
    * @param path The path where the audio files remain.
    */
   virtual void init (SGPropertyNode *, SGPropertyNode *, SGSampleGroup *,
-                     SGSampleGroup *, const string &);
+                     SGSampleGroup *, const SGPath& currentDir);
 
   /**
    * Check whether an event has happened and if action has to be taken.
@@ -149,12 +149,12 @@ private:
   double _dt_play;
   double _dt_stop;
   double _delay;        // time after which the sound should be started (default: 0)
-  double _stopping;    // time after the sound should have stopped.
-                       // This is useful for lost packets in in-transit mode.
+  double _stopping;     // time after the sound should have stopped.
+                        // This is useful for lost packets in in-transit mode.
+  bool _initialized;
 
   std::vector<_snd_prop> _volume;
   std::vector<_snd_prop> _pitch;
-
 };
 
 #endif // _SG_SOUND_HXX