CompuServe Thread

Animator VBX

12 messages in this thread
#101790From: Paul ChenMay 15, 1994 12:50 AM
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
#101997From: Brian Rudolph [Adesk]May 16, 1994 10:36 AM
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
#102150From: Dieter Schlaepfer [AdeskMay 16, 1994 11:39 PM
Hi Brian! I am up here and I answered most of Paul's questions. Eric
#102213From: Nik Grant [adesk]May 17, 1994 8:43 AM
"I am up here and I answered most of Paul's questions" Eric – nice to see you! Thanks for helping out. Nik
#102230From: Brian Rudolph [Adesk]May 17, 1994 10:20 AM
Eric, Thanks for jumping up onto the forum! It's great to see you hear. I hope you stick around. -Brian
#102379From: Dieter Schlaepfer [AdeskMay 17, 1994 8:15 PM
Brian and Nik, Thanks for inviting me to come on here. I can't spend too much time here though. Eric
#102149From: Dieter Schlaepfer [AdeskMay 16, 1994 11:34 PM
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
#102193From: Mei-Tien HsingMay 17, 1994 7:10 AM
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
#102377From: Dieter Schlaepfer [AdeskMay 17, 1994 8:10 PM
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
#102497From: Mei-Tien HsingMay 18, 1994 8:48 AM
Eric, Thanks. I am waiting to get my animator SDK to get into details. Mei-Tien
#102241From: Paul ChenMay 17, 1994 10:55 AM
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
#102378From: Dieter Schlaepfer [AdeskMay 17, 1994 8:12 PM
Paul, Yes you can, but when it switches from one animation in the script to another, the frame will be reset to zero. Eric