Lingo Dictionary > S > soundBusy() |  |

soundBusy()

Syntax

    soundBusy(whichChannel)

Description

Function; determines whether a sound is playing (`TRUE`)`` or not playing (`FALSE`) in the sound channel specified by `whichChannel``.`

Make sure that the playback head has moved before using `soundBusy()` to check the sound channel. If this function continues to return `FALSE` after a sound should be playing, add the `updateStage` command to start playing the sound before the playback head moves again.

This function works for those sound channels occupied by actual audio cast members. QuickTime, Flash, and Shockwave audio handle sound differently, and this function will not work with those media types.

Example

This statement checks whether a sound is playing in sound channel 1 and loops in the frame if it is. This allows the sound to finish before the playback head goes to another frame.

    if soundBusy(1) then go to the frame

See also

`sound playFile`, `sound stop`