SOUND keyword

Plays the specified sound.

Syntax

SOUND "key", "wait"

Parameters

  • key: sound key to play (required)
  • wait: set "wait" to wait for the sound to end when calling the WAIT command (default). Set "no-wait" will not wait.

Example

SOUND "click"           ' Plays sound

SOUND "click", "wait"
WAIT ' Sound must complete before continuing further

SOUND "click", "no-wait"
WAIT ' Code execution will continue even if sound is still playing

Go back to list of Keywords.