PDA

View Full Version : Playing mp3 music from delphi 5 / delphiX HOW?



atozix
23-10-2003, 09:06 PM
Hi all,

Is it possible to store an mp3 file in the res file and play it from within a program using delphi 5???... if so How??

cheeeeeerrrrrrrsssssss a

Harry Hunt
24-10-2003, 04:40 AM
You can use DirectShow to play MP3 files, but unless you write your own filter, you can't play MP3s from RES files using DirectShow. Another way of doing it is to use the FMOD, BASS or MPLUG libraries. They can all play MP3 files from a resource file.

http://www.fmod.org
http://www.un4seen.com/bass/
http://www.modplug.com/ <--- not sure about this one

atozix
24-10-2003, 07:21 AM
Hi Harry,, :)

THX for the info I shall check it out and
BTW i have downloaded the excess game development kit that i also will check out as soon as I get a slightly better grip of my current explorations of delphix..

cheeeeeeeeerrrrrrrrsssssssss atozix

Gadget
29-01-2004, 06:49 AM
Hi all,

Is it possible to store an mp3 file in the res file and play it from within a program using delphi 5???... if so How??

cheeeeeerrrrrrrsssssss a

It's not very elegant, but the media player control works fine.