Using Director > Sound, Video, and Synchronization > Streaming linked Shockwave Audio and MP3 audio files

 

Streaming linked Shockwave Audio and MP3 audio files

Director streams sounds that have been compressed with Shockwave Audio as well as MP3 audio files, from either a local disk or a URL. Before you can set up a streaming Shockwave Audio cast member, you must create a Shockwave Audio or MP3 file.

To create external Shockwave Audio files, do one of the following:

In Windows, choose Xtras > Convert WAV to SWA and choose the WAV files to convert.

On the Macintosh, use the Peak LE 2 software to export Shockwave Audio sounds.

For both methods, the audio settings are similar to those for using Shockwave Audio to compress internal sounds. See Compressing internal sounds with Shockwave Audio.

Note: Converting WAV to SWA does not compress IMA compressed sounds.

To stream a linked Shockwave Audio or MP3 sound:

1

Choose Insert > Media Element > Shockwave Audio.

This creates a cast member that controls the streaming Shockwave Audio.

2

In the SWA Cast Member Properties dialog box that appears, click Browse and choose a Shockwave Audio file on a local disk, or enter a URL in the Link Address box.

Unless you choose a file in the same folder as the movie, the movie always links to the exact location you specify. Be sure to link to the correct location.

3

Set the remaining cast member properties in the Property Inspector as follows:

To set the volume of the sound, use the Volume slider in the SWA tab of the Property Inspector.

To choose the sound channel for the sound, choose a number from the Channel pop-up menu in the SWA tab. To avoid potential conflicts, choose Any. This will cause the sound to play in the highest numbered available sound channel.

To specify the size of the stream buffer, use the Preload option in the SWA tab. Director attempts to load enough sound data to play for the specified time in seconds. This prevents gaps in sounds played over slow or interruption-prone Internet connections.

4

Drag the Shockwave Audio cast member to a sprite channel (not one of the sound channels) to create a sprite. Extend the sprite through all frames in which the sound should play, or use the tempo channel to make the movie wait for the end of the sound. See Synchronizing media.

You cannot place streaming audio cast members in the sound channels. The sound streams from the source location when the movie plays.