audiofile forceplay - part-cw/lambdanative GitHub Wiki
(audiofile-forceplay id)
audiofile-play plays a sound file with the given id, which must be a value returned from audiofile-load. This function will unmute the device before playing so please use wisely, e.g. only to play alarm sounds of highest priority.
Parameter | Description |
---|---|
id | id returned by (audiofile-load file) |
Example
Example 1: Play a sound even if device is muted, here an emergency alarm in a medical application.
(audiofile-init)
(set! audio:emergency (audiofile-load "Emergency"))
(audiofile-forceplay audio:emergency)