Skip to content
Dustin edited this page Apr 6, 2017 · 1 revision

audiofile-loop plays a sound file with the given id, which must be a value returned from audiofile-load. Once the sound file finishes it is played again. This will continue until audiofile-stop is called.

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

Example

Example to play a loop of the file win.wav in an app at sounds/win.wav

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