//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
# error This library requires C++
#endif
+#include <vector>
+
#include <simgear/compiler.h>
#include <simgear/props/condition.hxx>
* <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.
// SGXmlSound properties
typedef struct {
- SGPropertyNode * prop;
+ SGPropertyNode_ptr prop;
double (*fn)(double);
double *intern;
double factor;
private:
SGSoundMgr * _mgr;
- SGSoundSample * _sample;
+ SGSharedPtr<SGSoundSample> _sample;
SGCondition * _condition;
- SGPropertyNode * _property;
+ SGPropertyNode_ptr _property;
bool _active;
string _name;
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;
};