Function PlaySound

PlaySound(sound)
The function plays a sound file in MP3 format. A sound file could be loaded as a resource or downloaded from the internet during runtime using function DownloadFile. In the below example we assume that "tone.mp3" is located next to your BAS source file, and we load it as a resource. Example:
$Tone = #"tone.mp3"
PlaySound($Tone)
Program does not wait until mp3 file is played. The sound file is played in the background, but all currently playing sounds can be stopped by call of function StopSounds.

See also: