Lingo Dictionary > S > sound stop |  |

sound stop

Syntax

    sound(whichChannel).stop()
    sound stop whichChannel

Description

Command; stops the sound playing in the specified channel.

The `sound stop` command was used in earlier versions of Director. For best results, use the `puppetSound` command instead.

Example

These statements stop any sound playing in sound channel 1:

    sound(1).stop()

Example

This statement checks whether a sound is playing in sound channel 1 and, if it is, stops the sound:

    if soundBusy(1) then sound(1).stop()

See also

`puppetSound`, `soundBusy()`