Lingo Dictionary > O-R > puppetSound |  |

puppetSound

Syntax

    puppetSound whichChannel, whichCastMember
    puppetSound whichCastMember
    puppetSound member whichCastMember
    puppetSound 0
    puppetSound whichChannel, 0

Description

Command; makes the sound channel a puppet, plays the sound cast member specified by `whichCastMember`, and lets Lingo override any sounds assigned in the Score's sound channels.

Specify a sound channel by replacing `whichChannel` with a channel number.

The sound starts playing after the playback head moves or the `updateStage` command is executed. Using 0 as the cast number argument stops the sound from playing. It also returns control of the sound channel to the Score.

Puppet sounds can be useful for playing a sound while a different movie is being loaded into memory.

The Director player for Java supports the following versions of the `puppetSound` command:

| `puppetSound` `whichChannel, whichCastMember`, or `puppetSound` `whichCastMember—` Plays a sound.
| `puppetSound 0` or`puppetSound whichChannel, 0—`Stops a sound.

Example

This statement plays the sound Wind under control of Lingo:

    puppetSound "Wind"

Example

This statement turns off the sound playing in channel 2:

    puppetSound 2, 0

See also

`sound fadeIn`, `sound fadeOut`, `sound playFile`, `sound stop`