mp3 bgm in allegro
Ok kids, I'm working on Firestater, from FLCL. The game part of it is done and all that's left to do right now is put in some serious artwork and a few more levels.
I want to put in some background music from the series, but I only have it in mp3 format. Is there any simple way to do this, like maybe a specific library or something?
^^^ Probably one of the best music api's i've seen as of yet, and it's free! (unless you're selling your game/program...then you have to pay for it)
Ok, I downloaded that and installed it, and I tried loading my file in two different ways:
FSOUND_SAMPLE *bgm = FSOUND_Sample_Load(FSOUND_FREE,"star.mp3",FSOUND_NORMAL,0,0);
In both cases, the following line gave me an error:
FSOUND_STREAM *bgm = FSOUND_Stream_Open("star.mp3",FSOUND_NORMAL | FSOUND_STREAMABLE,0,0);
Am I using the wrong flags, or is there a problem with the relative filenames, or what?
if (bgm == NULL) error("Unable to load \"star.mp3\"");
I checked with ifstream and the file is definitely there.
make sure you're calling FSOUND_Init
FSOUND_Init(44100, 32, 0);