Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

audiofile-play plays a sound file with the given id, which must be a value returned from audiofile-load.

Parameter Description
id id returned by (audiofile-load file)

Example

Example from apps/uSquish/main.scm to play sounds/win.wav

(audiofile-init)
(set! sound-win (audiofile-load "win"))
(audiofile-play sound-win)
Clone this wiki locally