Compressing Sounds

   

The Shockwave Audio (SWA) format was originally developed as a way to compress sound cast members in Director movies. It reduces sound cast members to as little as one-twelfth of their original size , with minimal loss in sound quality ( Figure 13.29 ).

Figure 13.29. Two music files displayed in Windows: a standard WAV file (above), and the same piece of music compressed in Shockwave Audio format (below). Note the significant difference in file sizes.

graphics/13fig29.gif

Sound cast members embedded in a Director movie file are automatically compressed in SWA format when you publish your Director movie as a Shockwave movie. (See Chapter 17, "Making Movies for the Web.") The same is true when you create a projector file, but only if the Compress (Shockwave format) option is selected in the Projector Options dialog box. (See Chapter 16, "Creating a Projector.") The only exceptions in both cases are sound cast members that are already compressed, such as MP3 files.

SWA compression of embedded cast members is one-size-fits-all. You can't choose different settings for different cast members, or choose to compress some sound files and not others.

External sound files may also be converted to SWA format, but the conversion must be done manually. In Windows, WAV files may be converted to SWA within Director. On the Mac, a variety of file formats can be converted, but only in a third-party program, Peak LE.

These days, there's very little reason to use SWA. SWA format is very similar to MP3 format, which was based on SWA and has since become the most popular format for music files on the Internet. If you want to compress sound files, you'll get better quality by using one of many third-party programs (such as Apple's free iTunes) to convert them to MP3 format. You can then import them normally into Director (using either the Standard Import or Link to External File option), or use them as streaming audio files (see "Using Streaming Sounds," later in this chapter).

Keep in mind that using either SWA or MP3 compression may cause a slight delay at the beginning of your Director movie while the files are decompressed.

To convert external sound files to SWA format (Windows):

  1. In Director, choose Xtras > Convert WAV to SWA.

    The "Convert .WAV files..." dialog box opens ( Figure 13.30 ).

    Figure 13.30. The "Convert .WAV files..." dialog box opens.

    graphics/13fig30.gif

  2. Click Add Files.

    The "Select .WAV Files..." dialog box opens ( Figure 13.31 ).

    Figure 13.31. The "Select .WAV files..." dialog box, with multiple files selected.

    graphics/13fig31.gif

  3. Select one or more WAV files to convert.

    To select multiple files, hold down the Control key as you click each additional file.

  4. Click Open .

    The selected files appear in the Files to Convert window in the "Convert .WAV files..." dialog box ( Figure 13.32 ).

    Figure 13.32. The selected files appear in the Files to Convert window of the "Convert .WAV files..." dialog box.

    graphics/13fig32.gif

  5. Choose compression settings ( Figure 13.33 ).

    Figure 13.33. Choose settings for the bit rate and accuracy, and decide whether you want stereo files to be converted to mono.

    graphics/13fig33.gif

    The settings you specify apply to all the selected files.

    The Bit Rate may be set to any value from 8 to 160. Lower values mean more compression but lower sound quality.

    Accuracy may be set to Normal or High. High accuracy improves sound quality but increases conversion time significantly.

    If the bit rate is set to 48 or higher, you have the option to select Convert Stereo to Mono . (Below 48, stereo files are automatically converted to mono.) Choosing this option halves the amount of data in a stereo sound file.

  6. Click the Select New Folder button.

    A "Select an Output Folder..." dialog box opens ( Figure 13.34 ).

    Figure 13.34. In the "Select an Output Folder..." dialog box, select the folder in which you want the converted files to be saved.

    graphics/13fig34.gif

  7. Select a folder to which you want the converted sound files to be saved, and click Select Folder.

    The "Select an Output Folder..." dialog box closes .

  8. In the "Convert .WAV files..." dialog box, click Convert.

    A progress bar tracks the conversion process.

  9. Click Close to close the dialog box.

    The converted files are in the folder you specified in step 7.

To convert an external sound file to SWA format (Mac):

  1. Open the file in Peak LE (version 2 or later).

  2. In Peak LE, choose File > Save As.

    A Save Audio Document dialog box opens.

  3. Choose Shockwave from the File Type pop-up menu.

  4. Choose compression settings as desired.

  5. Click Save to save the file.

   


Macromedia Director MX for Windows and Macintosh. Visual QuickStart Guide
Macromedia Director MX for Windows and Macintosh. Visual QuickStart Guide
ISBN: 1847193439
EAN: N/A
Year: 2003
Pages: 139

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net