Using Streaming Audio

You might find that some computers don't have enough memory to play an animation sequence that includes audio. One way to get around this problem is by using streaming audio.

To use streaming audio with an animation sequence, you create the animation and audio files separately. After you convert these files, the audio is played back synchronized with the animation sequence whenever the user activates the animation sequence (or displays a topic with an embedded animation window). Because Viewer doesn't need to load the audio into memory along with the animation sequence, an animation sequence with streaming audio requires less memory than an animation sequence with embedded audio.

When you use MacroMind Director to create an animation file with streaming audio, you must enter the following command in frame 1 of the Script channel:

mci "open filename.wav type waveaudio alias alias"

This command is actually a Media Control Interface (MCI) command in Windows with Multimedia. In this command, substitute the name of the audio filename for the filename. Make sure this filename includes a path relative to the project directory.

The alias must be the same as the base name of the audio file. For example, if the audio filename is TRAIN.WAV and the file resides in the SOUNDS subdirectory, the alias must be TRAIN, and the command would appear as follows:

mci "open sounds\train.wav type waveaudio alias train"

For more information on using MCI commands in the Script channel of a MacroMind Director animation file, see the Multimedia Authoring Guide included with the MDK.