chickadee » sdl-mixer » open-audio

open-audio #!key sampling-rate sample-format channels chunk-sizeprocedure

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:

sampling-rate
44100
sample-format
AUDIO_S16SYS
channels
2
chunk-size
1024

Note: The sdl-init and mix-init procedures will be called only once.