sound

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the sound
sound()
Summary

Returns the name of the audio clip or sound file that is currently playing.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile, mobile
Example
the sound
wait until the sound is done
Values
NameTypeDescription
return

The sound function returns a string.

RelatedCommand: start, beep
Property: soundChannel
Description

Use the sound function to synchronize other actions with sounds.

On desktop the sound function returns 'done' if no audio clip is playing. If an audio clip is playing the name of the audio clip is returned.

On iOS the sound function returns 'done' if there is no sound currently playing. If a sound is currently being played its filename is returned.

Sounds played with the beep command do not affect the value returned by the sound function.

Tagsmultimedia