Skip to content

Index of Module audio

Dustin edited this page Apr 6, 2017 · 8 revisions

Module: audio

The audio module will play Waveform Audio File Format (wav) and OGG sound files. The internal wav file parser only understands single-chunk uncompressed 16 bit pcm at 44100Hz.

Functions in this module:

Function Short Description
(audiofile-init) Initializes the audio file playback subsystem
(audiofile-load name) Load a sound file (no extension) and return the corresponding id
(audiofile-play id) Play a sound file with the given id
(audiofile-forceplay id) Play a sound file with the given id even if volume is set to zero.
(audiofile-loop id) Play a sound file in a loop with the given id
(audiofile-start) Restarts the audio file playback subsystem.
(audiofile-stop) Stops the audio file playback subsystem.
(audiofile-getvolume) Returns the current volume of the audio file playback subsystem.
Clone this wiki locally