~2:*~A - ~A
LISPBUILDER-SDL-MIXER provides a Common Lisp binding to the
SDL_mixer library.
The library mixes multiple samples into one or more audio output channels.
Lisp callbacks provide the capability to implement custom mixing algorithms and
custom audio effects over and above the distance attenuation, panning and
reverse stereo effects provided by the SDL_mixer library.
WAVE, MOD, MIDI, OGG, AIFF, RIFF and VOC formats are supported.
LISPBUILDER-SDL-MIXER has a dependency on LISPBUILDER-SDL.
The code comes with
a MIT-style license so you can basically
do with it whatever you want.
Download shortcut: http://www.balooga.com/lispbuilder/~:*~A.tgz.
;; Load an mp3 music file and play the file continuously.
(sdl:with-init (sdl:sdl-init-video sdl:sdl-init-audio)
(sdl:window 50 10)
(sdl-mixer:OPEN-AUDIO)
(let ((music (sdl-mixer:load-music "sample.mp3")))
(sdl-mixer:play-music music :loop t)
(sdl:with-events ()
(:quit-event ()
(sdl-mixer:Halt-Music)
(sdl-mixer:free music)
(sdl-mixer:close-audio)
t)
(:idle () (sdl:update-display)))))
- Abstract
- Dependencies
- Download
- Installation
- Usage
- Examples
- Support
- License
- API Overview
- The ~A dictionary
- Acknowledgements
- LISPBUILDER-SDL:
Automatically installed if using ASDF-INSTALL, or Edi Weitz's Starter Pack. Otherwise,
please refer to the official LISPBUILDER-SDL installation instructions.
- ASDF:
ASDF is already installed for users of SBCL, OpenMCL, ECL or ACL, or Lispworks and Edi Weitz's Lisp Starter Pack.
Otherwise, please refer to the official ASDF README for installation instructions.
- CFFI:
Automatically installed if using ASDF-INSTALL, or Edi Weitz's Starter Pack. Otherwise,
please refer to the official installation instructions.
- SDL:
Automatically installed by Edi Weitz's Lisp Starter Pack. Otherwise, Windows/Mac users should download the binaries from www.libsdl.org, while
Linux users should use their package managers to install the RPM's or DEBs.
- SDL_mixer:
Automatically installed by Edi Weitz's Lisp Starter Pack. Otherwise, Windows/Mac users should download the binaries from www.libsdl.org/projects/SDL_mixer/, while
Linux users should use their package managers to install the RPM's or DEBs.
Current Version: The latest stable version of ~2:*~A, together with this documentation can be downloaded from
http://www.balooga.com/lispbuilder/~:*~A.tgz. The
current version is 0.2.0.
Development: The latest developement version is available via anonymous SVN:
svn co https://lispbuilder.svn.sourceforge.net/svnroot/lispbuilder lispbuilder-sdl-mixer
See the LISPBUILDER documentation
for installation instructions for Windows,
Mac OS-X and
Linux.
Enter the following at the REPL to compile and load the LISPBUILDER-SDL-MIXER package:
(asdf:operate 'asdf:load-op :lispbuilder-sdl-mixer)
ASDF will automatically load and compile the CFFI and :LISPBUILDER-SDL dependencies.
Enter the following at the REPL to compile and load the examples included in the
LISPBUILDER-SDL-MIXER-EXAMPLES package:
(asdf:operate 'asdf:load-op :lispbuilder-sdl-mixer-examples)
Run the examples by entering any of the following at the REPL:
(SDL-MIXER-EXAMPLES:MIXER)
Questions answered and help given on the lispbuilder discussion list.
Documentation for LISPBUILDER-SDL and related packages is available on the LISPBUILDER project page on Sourceforge.
For additional information, look at the Lisp Gardeners page, and
Application Builder page
on the ALU's (Association of Lisp Users) wiki.
LISPBUILDER-SDL-MIXER is distributed under the
MIT-style license.