audiofile loop - part-cw/lambdanative GitHub Wiki
(audiofile-loop id)
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)