# Function Reference

SoundPlay

Play a sound file.

SoundPlay ( "filename" [, wait] )

Parameters

filename | Name of the file to be played (typically a WAV or MP3)
wait | [optional] This flag determines if the script should wait for the sound to finish before continuing: 1 = wait until sound has finished 0 = continue script while sound is playing (default)

Return Value

None. (Always returns 1 regardless of success.)

Remarks

Terminating the script will stop the sound (if it is still playing).

Related

SoundSetWaveVolume

Example

SoundPlay(@WindowsDir & "\media\tada.wav",1)