TPlaySound

TPlaySound is a component to play WAV files in Windows, Linux and MacOS.

playsound_oi.png
playsound_oi.png

Usage

edit
  playsound1.execute;

Note: Usually PlayCommand shall be left empty. This way TPlaysound will try to autodected an available method for playing (for Linux). If the value is not empty, a forced play method will be used, and if it is not available, an exception will be thrown.

Download

edit

I can also be installed directly from the Lazarus IDE: Main Menu — Package — Online Package Manager — PlaysoundPackage.

See Also

edit