This section applies to Cocoa and Microsoft Windows only.
On Cocoa and Microsoft Windows, CAPI provides a simple interface to play sound from sound files. The host system determines which formats of sound files it can play.
Use load-sound to create a sound object from either a file or the result of read-sound-file, then play-sound to play it, and stop-sound to stop playing. free-sound can be used to free it
read-sound-file can be used to load a sound file as data into the Lisp image, which then can be used by load-sound without accessing a file. This is useful in delivered applications.
The function beep-pane tries to make a beep sound.
CAPI User Guide and Reference Manual (Windows version) - 3 Aug 2017