chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] ANN: Binding for libsdl-mixer available


From: Christian Kellermann
Subject: [Chicken-users] ANN: Binding for libsdl-mixer available
Date: Mon, 28 May 2012 12:05:38 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Dear Chicken fans,

I want to direct your attention to a new egg that I have created and
found quite entertaining so far: sdl-mixer a binding to libsdl-mixer
that allows you to play music and samples in scheme with ease.

It is LGPL licensed (as is libsdl-mixer) and the docs can be found in
the usual places: http://wiki.call-cc.org/eggref/4/sdl-mixer

Playing a file and samples is easy:

(use sdl-mixer)

(open-audio)

(channel-finished (lambda (c) (printf "Channel ~a finished~%" c)))

(play-music (load-music "background.mp3"))
(let ((s (load-sample "noise.wav")))
     (play-sample s))
(close-audio)

So maybe for all the game developers out there this is useful. I am
looking forward to hearing your feedback.

Cheers,

Christian

--
9 out of 10 voices in my head say, that I am crazy,
one is humming.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]