Even though all your sounds start on the same frame, playback is not always predictable. Logically, you'd expect the sounds to play back in perfect synchronization; after all, that's how you placed them on the Stage. That's not always what happens, however. Depending on the capabilities of the computer on which the sound is being played back, some of the sounds might not begin playback at precisely the same rate or time. This gives your soundtrack an "off" sound. Staggering the introduction of sounds, even sounds recorded at exactly the same rate, is even more problematic . Remember that an event sound has to download completely before it can start to play, so unless you've preloaded your sounds, there will be a lag before the sound starts to play. There are a variety of ways you can approach this problem. You could set one of the sounds to stream. That would serve to lock the rate at which the movie plays back. That'll work, sort of. You'll most likely hear degradation in the quality of whichever track you stream. You'll definitely get an increase in your file size. If you're going to take a hit in file size for streaming, why not do it in such a way that your overall sound quality doesn't suffer? Fortunately, there's a handy little trick you can use to accomplish this. All you need is a very short, low-quality sound that has been recorded at the same tempo as the rest of your sounds. It doesn't particularly matter what the sound is; you're going to mute it anyway. After you have the sound, you're going to do exactly what you were told not to do a few sections agoyou're going to loop the sound and set the synchronization to stream. Yes, this increases your file size. However, because you never actually hear the additional sound, you don't have to worry about the quality of the sound degrading while streaming. In addition, it serves to lock down your timeline so that all the music plays back in synchronization. Exercise 13.2 Synchronizing Sounds in Layers To get predictable playback of sound, you need to lock your timeline. You do that by inserting a streaming layer.
Tip Starting the streaming sound a few frames before the rest of your sounds helps to lock the timeline. You get another chance to practice using a streaming track a little later when you learn how to synchronize a spoken soundtrack to animation. Before you do that, however, take some time and learn how to customize the soundtrack you have. Note On a PC, you can create a layered track in Flash and export it as a WAV file. You then can import and work with the single sound rather than with layers (File > Export Movie > WAV Audio). Unfortunately, there isn't an equivalent export on a Macintosh. |