libmad help

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
seventoes
Posts: 79
Joined: Sun Oct 02, 2005 4:50 am

libmad help

Post by seventoes »

How exactly do you get libmad to play an mp3 file? right now i have this and it doesnt seem to work:

Code: Select all

MP3_Init(0);
MP3_Load("audiofiles/testing.mp3");
MP3_Play();
while(1) { //wait for X to be pressed
    readpad(&pad, 1);
    if(pad.Buttons & PSP_CTRL_CROSS) {
        break;
    }
}
MP3_Stop();
It doesnt even start the music. What else do i need to do?
Post Reply