Lingo Dictionary > G-K > isBusy()

 

isBusy()

Syntax

sound(channelNum).isBusy()

Description

Function; returns TRUE if sound channel channelNum is currently playing or pausing a sound, and FALSE if it hasn't started playing any of its queued sounds or has been stopped.

To see an example of isBusy() used in a completed movie, see the Sound Control movie in the Learning\Lingo Examples folder inside the Director application folder.

Example

This Lingo statement checks whether a sound is playing in sound channel 1. If there is, the text of member field is set to "You should hear music now." Otherwise, the text reads "The music has ended."

if sound(1).isBusy() then
	member("field").text = "You should hear music now."
else
	member("field").text = "The music has ended."
end if

See also

pause(), playNext(), queue(), status, stop() (sound)