It works! Thank you very much. The reason was the lacking library.
This code plays a mp3 file.
program test;
uses
sounds;
begin
PlaySound('guitar.wav');
end.
unit sounds;
interface
uses
sdl, sdl_mixer, strings;
procedure PlaySound(filename: string);
implementation
procedure PlaySound(filenam
Probably your missing the libsmpeg library. On debian it's provided by the
libsmpeg0 package.
https://packages.debian.org/wheezy/libsmpeg0
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fp
Hell all,
A friend ask me about the audio playing with SDL. I tried to do an example.
As I use Linux, with the following command, I consider all packages
neeeded would be installed, but it seems that I am wrong:
sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev
libsdl-mixer1.2-dev libsdl-ttf