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

audiofile-load loads a sound file and return the corresponding id. Do not specify a file name extension.

Parameter Description
name Filename without extension

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