Animator VBX
12 messages in this thread
You have mentioned that your developers write routines to play wav files
from memory, then use SoundDelay to sych to the flic. Can you please
elaborate on this a bit more? What I don't quite understand is: if you wrote
your own routine to load and play music, how can you tell the VBPLAY.VBX
that you want to delay it?
With my program, I actually creat a script file to play multiple flics
sequencially with all the necessary setting. If I write a routine to play
the music seperately, how can I sync them to the flics? Is there someway
that I can reset the sound file pointer to point at the sound wav in memory?
Paul
Paul,
Unfortunately, I can't elaborate. I don't know how they did it.
However, I will talk to one of them and see if I can get some code or something
that I can post as an example. Or at least get him up here to answer questions.
-Brian
Hi Brian!
I am up here and I answered most of Paul's questions.
Eric
"I am up here and I answered most of Paul's questions"
Eric – nice to see you! Thanks for helping out.
Nik
Eric,
Thanks for jumping up onto the forum! It's great to see you hear. I hope you
stick around.
-Brian
Brian and Nik,
Thanks for inviting me to come on here. I can't spend too much time here
though.
Eric
Paul,
SoundDelay is a custom property that you can specify how many milliseconds from
the beginning of an animation you want a sound
to begin playing. You can't get vbplay.vbx to delay the sound since
the sound functions are built in and can't be modified or replaced.
If you want to sync the sound with a particular frame, you need to detect the
current frame with the PositionFrame property. When the
value reaches the frame you want the sound to play on, you may call
your function that plays the sound. In that case, you don't need to
use SoundDelay.
If you want to play a music file, you still would use PositionFrame. I don't
know how you could set the sound pointer in memory.
Hope this helps,
Eric
Eric,
You seem to answer a question I also have. Do you mean that if I need to
precisely sync the sound with animation, I need to know the frame position, and
then play sound? And is there a VBX for this work?
Thanks.
Mei-Tien
Mei-Tien,
Yes, you need to know the frame position. It will never be exactly
synchronized but very close. Use VBPLAY.VBX that comes with the
Animator Player for Windows.
Eric
Eric,
Thanks. I am waiting to get my animator SDK to get into details.
Mei-Tien
Thanks! Just one more question: If I am playing the multiple flics by
passing a script file to the VBX, can I still using PositionFrame to detect
the frame status of my flics?
Paul
Paul,
Yes you can, but when it switches from one animation in the script to
another, the frame will be reset to zero.
Eric