Using Streaming Sounds
As explained in the “Inserted and Streaming Sounds” sidebar at the beginning of this chapter, any externally linked sound file can be streamed. However, only some sounds can be streamed over the Web, directly from their source files, independent of the streaming of the rest of the Director movie. These are the files that Director refers to as streaming sounds.
Only Shockwave Audio (SWA) or MP3 files may be treated as streaming sounds.
To set a linked SWA or MP3 sound to stream:
In Director, choose Insert > Media Element > Shockwave Audio.
The SWA Cast Member Properties dialog box opens (Figure 13.35).
Figure 13.35. The SWA Cast Member Properties dialog box. Despite its name, it applies to both SWA and MP3 cast members.
Click Browse and select a local SWA or MP3 file.
Type a URL in the Link Address field (Figure 13.36).
Figure 13.36. By default, the Link Address field contains the URL of a sample SWA file on Macromedia’s Web site.
Set the volume of the sound (a value between 0 and 15) with the Volume slider or the adjacent arrows.
From the Sound Channel pop-up menu, choose Any (Figure 13.37).
Figure 13.37. The Sound Channel pop-up menu lists eight channels, but pick Any for best results.
The menu lists eight sound channels (including the six accessible only through Lingo), but choosing Any automatically prevents conflicts with other sounds.
Use the Preload Time pop-up menu to specify how many seconds of sound Director should store in a buffer as it plays the sound file (Figure 13.38).
Figure 13.38. The numbers on the Preload Time pop-up menu represent the number of seconds of sound that Director will store in a buffer.
A longer preload time causes a longer delay before the sound begins to play but results in smoother playback of the sound.
If you wish, click Play to preview the linked sound file.
If the file is in a remote location, you must be connected to the Internet (or another network) to preview the file.
Click OK to close the dialog box.
The linked sound file appears in the Cast window (Figure 13.39).
Figure 13.39. A streaming sound has a slightly different icon in the Cast window.