Why does the synchronization of the sound and the animation disrupt after several animations with synchronized sound which go one after another.
I've used stream.
Im using flash cs4.
Also remember that it's the animation that gets out of sync, not the audio.
The reason I say that is because the audio MUST play at one and only one frequency... or in other words, the audio will have an exact length of time that it takes to play the sound. If you shorten that time in an attempt to match the animation, that's sort of like pushing the sound together, that increases the frequency and raises the pitch... making it sound like Alvin and the Chipmunks.
On the other hand, if you streeeeetch out the sound over a longer period of time, decreasing the frequency, you looowweer the pitch.
So knowing that sound must play back at only one rate (or frequency), you'll need to match the animation to the playback speed (frequency) of the audio, not the other way around.
While it's often recommeded that you not embed video into the main timeline because of this same audio/video syncing problem ("audio gets out of sync"), I've had no problems with syncing the audio and video as long as I set the Flash doc frame rate to exactly match the original video Frame rate (29.97 frames per sec for mini-DV).
Here's an example of a video embedded directly into the timeline, yet the audio stays in sync.
http://www.cidigitalmedia.com/tutorials/vid_sync/vid_sync.html
Now I realize you are not using video, but the principle is the same. Match the animation to the audio, not the other way around.
This may mean that you need to play with the document frame rate to find the sweet spot where the audio and animation stay in sync. Test your .swf with higher and lower frame rates to see the effect. It may take some experimentaion but you should be able to greatly improve the sync.
Best wishes,
Adninjastrator
In the flash game I am working on, there is a character who speaks. I have managed to animate the moves of its lips and match them precisely to the sound. Of course, I used streaming to avoid divergence of sound and animation. There are more of these animations which are set one after the other ...
At the time-line I have set animation 1 with the corresponding sound 1 below it, then animation 2 with sound 2 etc. When the program starts the problem arises. Only animation 1 perfectly matches the sound and every next one has a greater divergence from the sound (speech is not simultaneous with the lip movement).
Is there an adjustment in flash that would solve this problem? Since I did not know how to solve the problem, I shifted the sounds below the animations to the right in order to make them fit the animation. I doubt that people who have made the flash imagined solving the problem in this way since it is too difficult.
Animation was done at 30 fps, and no matter how many fps there are, the same problem occurs. Sir ..... thank you for your effort and the answers you have provided so far. I would be very grateful if you could help me solve this very important problem. I give you solid 5 points for all that you have done.
If you've read my first post about syncing, about all I could add is that it's very hard to match audio and video or animation.
Since your first section syncs OK, have you tried putting each animation in it's own movie clip? And then work to sync audio and animation in the individual clip.... not over the entire time line, since any lag builds on the previous lag and compounds the problem.
And remember, it's the animation that is out of sync, NOT the audio... which is often blamed for the problem.
So when building the individual movie clips, lay down the audio track first and then match the animation to that... not the other way around.
Best wishes,
Adninjastrator
North America
Europe, Middle East and Africa
Asia Pacific