• Steam recently changed the default privacy settings for all users. This may impact tracking. Ensure your profile has the correct settings by following the guide on our forums.

Check PSP Music Player

WalangAlam

New Member
How do i check if the official music player is playing mp3 or wmv?

my code will be something like

if music_is_playing
{
do this
}

what will i replace music_is_playing with?

sorry im new here in this section. it seems i forgot the c++ prefix
 
im using c++. anybody could help me with this? i also posted the same question in other forums but nobody is answering so far.
 
i'm pretty sure it shows the file type where it lists the songs.

Here, found this image on The Google. (really cool place, you should check it out sometime)

screenshot024sq3.png


As you can see, it shows the file type off to the right. No coding is going to be needed. Plus, how do you expect 4 lines of code to do something?
 
i'm pretty sure it shows the file type where it lists the songs.

Here, found this image on The Google. (really cool place, you should check it out sometime)

[qimg]http://img467.imageshack.us/img467/7089/screenshot024sq3.png[/qimg]

As you can see, it shows the file type off to the right. No coding is going to be needed. Plus, how do you expect 4 lines of code to do something?

:laugh: yep i already consulted mr. google.

according to him this what i have to look for.
Lesson 06 - Adding Sound.

im clueless though what are the prx/functions that is responsible for loading audio in psp since im noob in programming.


of course that's just the part of my prx code just give me the name of the function and i will code the rest. im finished with the plugin im working on and that's the only missing part that i need to add. juz point me in the right direction and i will do the rest (the more specific the better) i already created several plugins and distributed them to friends. im still very noob though and obviously need a lot of readings.

going to do something like(not the complete code)

Code:
sceCtrlPeekBufferPositive(&pad, 1);


if((pad.Buttons & PSP_CTRL_HOLD) & (music_is_not playing))
{
	//do something
}

sceKernelDelayThreadCB(1000000); 
return 0;
 
I don't think it's nearly as easy as you're making it out to be

As far as I know, there's no simple 'is_music_playing' type of function. I think you'd have to actually check if x prx is loaded, if y is activated, if etc, etc check which channels are in use, etc. In short, it's complicated.

Of course, I have limited knowledge in this particular department of xmb coding. Your best bet might be to look through pspaudio.h in the pspsdk... I see some functions there of use
eg. might be of some use?
Code:
/**
  * Get count of unplayed samples remaining
  *
  * @param channel - The channel number.
  *
  * @return Number of samples to be played, an error if less than 0.
  */
int sceAudioGetChannelRestLen(int channel);
With 8 being the maximum amount of channels allowed to be used... so if this function returns 8 then essentially that means there's 8 channels being unplayed, or music in xmb isn't being played?

Just a wild guess here
 
I don't think it's nearly as easy as you're making it out to be

As far as I know, there's no simple 'is_music_playing' type of function. I think you'd have to actually check if x prx is loaded, if y is activated, if etc, etc check which channels are in use, etc. In short, it's complicated.

Of course, I have limited knowledge in this particular department of xmb coding. Your best bet might be to look through pspaudio.h in the pspsdk... I see some functions there of use
eg. might be of some use?
Code:
/**
  * Get count of unplayed samples remaining
  *
  * @param channel - The channel number.
  *
  * @return Number of samples to be played, an error if less than 0.
  */
int sceAudioGetChannelRestLen(int channel);
With 8 being the maximum amount of channels allowed to be used... so if this function returns 8 then essentially that means there's 8 channels being unplayed, or music in xmb isn't being played?

Just a wild guess here

finally, something i could look into. ya i've been planning to look into pspaudio.h and such when i got the time maybe late this week. Thanks a lot Slasher now I know what scePowerRequestSuspend(); means and i got hooked with learning psp programming:love:

waiting for others' inputs...
 
got this working by checking music_player_module. now, my prx is 98% working.
all thanks goes to m0skit0.
 
Back
Top