Using Director > Sound, Video, and Synchronization > Playing Shockwave Audio and MP3 audio with Lingo |  |

Playing Shockwave Audio and MP3 audio with Lingo

Use SWA Lingo to preload and control SWA and MP3 sounds, and to determine how much of the sound has streamed over the Internet.

Lingo that controls other types of sounds can also control streaming SWA and MP3 sounds by controlling the sound channel that the sound plays in.

| To preload part of a streaming sound file into memory, use the `preLoadBuffer member` command. See `preLoadBuffer()`.
| To specify the amount of a streaming cast member to download before playback begins, set the `preLoadTime` cast member property. See `preLoadTime`.
| To determine what percentage of a streaming sound file has actually played, test the `percentPlayed` cast member property. See `percentPlayed`.
| To determine the percent of a streaming file that is already streamed from an Internet server, test the `percentStreamed` cast member property. See `percentStreamed`.
| To specify the sound channel in which a streaming sound plays, set the `soundChannel` property. See `soundChannel`.
| To begin playback of a streaming cast member, use the `play member` command. See `play member`.
| To pause a streaming sound file, use the `pause member` command. See `pause member`.
| To stop a streaming sound file, use the `stop member` command. See `stop member`.
| To determine the state of a streaming sound file, test the `state` cast member property. See `state`.
| To determine whether an error occurred when streaming a sound file, use the `getError()` function. See `getError()`.
| To obtain a string describing an error that occurred when streaming a sound file, use the `getErrorString()` function. See `getErrorString()`.
| To determine the length of a streaming sound file, use the `duration` cast member command. See `duration`.
| To determine the bit rate of a streaming sound cast member, test the `bitRate` cast member property. See `bitRate`.
| To determine the original bit depth of a streaming sound, test the `bitsPerSample` property. See `bitsPerSample`.
| To determine the sample rate of the original sound used for a streaming cast member, test the `sampleRate` cast member property. See `sampleRate`.
| To determine the number of channels in a streaming sound, test the `numChannels` streaming cast member property. See `numChannels`.
| To specify a streaming sound's volume, specify the `volume` streaming cast member property. See `volume (cast member property)`.
| To specify a streaming sound file's URL, set the `URL` cast member property. See `URL`.
| To obtain or set the copyright text in a streaming sound file, test or set the `copyrightInfo` cast member property. See `copyrightInfo`.