PDA

View Full Version : Is there a way to get notified when a .wav file or animation has finished?


vjonshih
05-15-2005, 04:23 PM
Hi there,

I was wondering if there was anything built into Vizard that can notify when a .wav file or animation has finished executing?

Right now, I'm attempted to append .wav files together...for example:

topic.wav says, "the topic of your first speech will be..."
and there are two possible topics, 1.wav and 2.wav, and i want to be able to programmatically append 1.wav or 2.wav to topic.wav in the world. Right now, I'm thinking of just calling viz.waittime(length of topic.wav file) in a director function (after asking topic.wav to play) and then asking 1.wav or 2.wav to play....but is there a better way to do this within Vizard?

Thanks in advance!

farshizzo
05-16-2005, 10:24 AM
Hi,

There is no callback for animations and wavs ending. As you suggested, you will have to use a timer or director function to wait for the wav to end.