>How do i check if the official music player is playing mp3 or wmv?
Well you listen for music and watch the screen, below the progress bar you will see wma if a wma is playing or mp3 if an mp3 is playing.
I seriously doubt there are functions for that.
You'd have to hook I/O routines and monitor them to see if the desired files are opened and what happens during playback etc.
what im doing is something like this
sceCtrlPeekBufferPositive(&pad, 1);
if((pad.Buttons & PSP_CTRL_HOLD) & (music_is_not playing))
{
//do something
}
sceKernelDelayThreadCB(1000000);
return 0;
i want to use the hold button to run a portion of my code. i can already run a piece of code if i put my switch to hold but i was thinking if i wanna listen to mp3 and put my switch to hold then my code will get activated.i don't want activate it if im playing mp3.