]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/xmlsound.hxx
MINGW patch by Csaba Halasz
[simgear.git] / simgear / sound / xmlsound.hxx
index 99bd9b268d6ccefb54bd3494725d9bb6c108cfd2..22dc5c2eeedf3fd877045c3b2da6369145603e7b 100644 (file)
@@ -33,6 +33,8 @@
 # error This library requires C++
 #endif
 
+#include <vector>
+
 #include <simgear/compiler.h>
 #include <simgear/props/condition.hxx>
 
@@ -76,6 +78,7 @@ public:
    *    <path/> The relative path to the audio file.
    *    <property/> Take action if this property becomes true.
    *    <condition/> Take action if this condition becomes true.
+   *    <delay-sec/> Time after which the sound should be played.
    *    <volume> or <pitch> Define volume or pitch settings.
    *     <property/> Take the value of this property as a refference for the
    *                 result.
@@ -144,11 +147,12 @@ private:
   double _prev_value;
   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 usefull for lost packets in in-trasit mode.
 
-  vector<_snd_prop> _volume;
-  vector<_snd_prop> _pitch;
+  std::vector<_snd_prop> _volume;
+  std::vector<_snd_prop> _pitch;
 
 };