play-sound in Miscellaneous
(play-sound-> booleanfilenameasync?)
filename: path
async?: booleanPlays a sound file. If
async?is false, the function does not return until the sound completes. Otherwise, it returns immediately. The result is#tif the sound plays successfully,#fotherwise.Under Windows, only .wav files are supported.
Under X, the function invokes an external sound-playing program; under Linux, the default is the play program. Under Solaris, the default is audioplay. Other X platforms do not have a default. For any X platform, a play command can be defined through the
'|MrEd:playcmd|preference preference (see Preferences). The command string isformatted with the input filename -- so the command string should contain a ``~a'' where the filename should be substituted -- then executed as a shell command. (Don't use ``~s'', since the string that is used with the format string will be properly quoted and wrapped in double quotes.)Under Mac OS X, Quicktime is used to play sounds; most sound formats (.wav, .aiff, .mp3) are supported in recent versions of Quicktime. In order to play .wav files, Quicktime 3.0 (compatible with OS 7.5 and up) is required.