I'm trying to get an mp3 to play in the background of my new app. I've installed libmad and I'm using mp3player.h and mp3player.c from PSPMediaCenter. It took me a while, but with some help from the PSP Chess source code, I have got sound playing in my app.
The problem is that it plays at 10-20x the speed it should. It's like the PSP is decoding and playing it as fast as it can. It's also causing the graphics on the screen to flicker.
Am I missing something simple like a max-speed setting or a bitrate setting? Do I need to run the sound in its own thread? Or is it something completely different (bug maybe)?
Edit: It was the mp3 that was causing the problems, I replaced it with a different one and it worked... but the flickering is still there. Any ideas on that one?