You are looking at historical revision 26752 of this page. It may differ significantly from its current revision.
This egg provides a schemely wrapper around the libsdl-mixer library. The original library documentation can be found at the libsdl website.
sdl and its dependencies.
Opening and closing the audio device[procedure] (open-audio #!key sampling-rate sample-format channels chunk-size)
Opens the audio device and initialises libsdl-mixer. Needs to be called at least once. It will close and reopen the device if it has been opened before.
The defaults for the keyword arguments are:
Note: The sdl-init and mix-init procedures will be called only once.[procedure] (close-audio)
Closes the audio device and shuts down the mixer library. No procedure should access libsdl-mixer or sdl audio procedures after calling close-audio.
Playing samples in channels[procedure] (load-sample)
Playing music[procedure] (load-music filename)
Loads a file filename and returns a music object. A condition is raised if the format of the file is not supported by libsdl-mixer.[procedure] (play-music music #!key repeat fadein volume)
The procedures in this extension raise a composite condition with the properties:
((exn message msg) (sdl) (mixer))
The wrapper is licensed as LGPL as is the original libsdl-mixer.
- dev release
- bugfix to appease salmonella
- callbacks added