the sound should be played (default: 0)
_prev_value(0),
_dt_play(0.0),
_dt_stop(0.0),
+ _delay(0.0),
_stopping(0.0)
{
}
SG_LOG(SG_GENERAL, SG_WARN,
" Neither a condition nor a property specified");
+ _delay = node->getDoubleValue("delay-sec", 0.0);
+
//
// set volume properties
//
_stopping = 0.0;
}
+ if (_dt_play < _delay)
+ return;
+
//
// Update the volume
//
* <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.
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.