Firebird News

Sunday, June 06, 2010

playing ogg with SDL and freepascal

I have found this example for playing wav/ogg with sdl mixer using the pascal language

on ubuntu debian all you need is fpc/lazarus and then
install libsdl1.2-dev headers and shared library

sudo apt-get install libsdl1.2-dev
also you need the mixer


sudo apt-get install libsdl-mixer1.2-dev


wget http://www.freepascal-meets-sdl.net/seiten/kapitel/kap7/chap7.pas

fpc chap7.pas

also you need the samples
In my mind.ogg and dial.wav

./chap7

No comments: