djdesmangles
02-18-2008, 05:38 AM
Hello Wizards !!
The "viz.ACTION_END_EVENT" is working fine. Now I would like to optimize one of my functions.
1) My Avatar is lip-synched with a .wav file.
2) I got a progress bar displaying to the user the position in the .wav file while the Avatar is speaking.
So, to do that, I've loaded the .wav for the Avatar with the vizact.speak('intro.wav'). But, for the Progress Bar, I must loaded the file again as a VizAudio object to access the getTime() and the getDuration() functions. It's working, but is there a better way to do that ?
viz.FOREVER,
D.
The "viz.ACTION_END_EVENT" is working fine. Now I would like to optimize one of my functions.
1) My Avatar is lip-synched with a .wav file.
2) I got a progress bar displaying to the user the position in the .wav file while the Avatar is speaking.
So, to do that, I've loaded the .wav for the Avatar with the vizact.speak('intro.wav'). But, for the Progress Bar, I must loaded the file again as a VizAudio object to access the getTime() and the getDuration() functions. It's working, but is there a better way to do that ?
viz.FOREVER,
D.