X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsound%2Fxmlsound.hxx;h=22dc5c2eeedf3fd877045c3b2da6369145603e7b;hb=8174005ac897f7042d71145201f139b67e08a5ce;hp=e290b3939d20332d0d08c74abde54e3462579055;hpb=5bbcd386fa837885782f128af77ff0162761945c;p=simgear.git diff --git a/simgear/sound/xmlsound.hxx b/simgear/sound/xmlsound.hxx index e290b393..22dc5c2e 100644 --- a/simgear/sound/xmlsound.hxx +++ b/simgear/sound/xmlsound.hxx @@ -16,7 +16,7 @@ // // 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$ @@ -33,6 +33,8 @@ # error This library requires C++ #endif +#include + #include #include @@ -76,6 +78,7 @@ public: * The relative path to the audio file. * Take action if this property becomes true. * Take action if this condition becomes true. + * Time after which the sound should be played. * or Define volume or pitch settings. * Take the value of this property as a refference for the * result. @@ -120,7 +123,7 @@ protected: // SGXmlSound properties typedef struct { - SGPropertyNode * prop; + SGPropertyNode_ptr prop; double (*fn)(double); double *intern; double factor; @@ -133,10 +136,10 @@ protected: private: SGSoundMgr * _mgr; - SGSoundSample * _sample; + SGSharedPtr _sample; SGCondition * _condition; - SGPropertyNode * _property; + SGPropertyNode_ptr _property; bool _active; string _name; @@ -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; };