Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
February 08, 2012, 06:08:52 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Check out the Code Section!
Home Help Search Shop Login Register
Digg This!
Pages: [1]
Print
Author Topic: Check PSP Music Player  (Read 2186 times)
WalangAlam
Jr. Member
**

Karma: +1/-0
Offline Offline

Posts: 79
3889.29 points

View Inventory
Send Money to WalangAlam

View Profile
« on: January 16, 2010, 03:31:45 PM »

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?
Logged


you
Foar Moar Bukkets!
All-Around Dev
Full Member
*

Karma: +11/-1
Offline Offline

Posts: 138
2588.04 points

View Inventory
Send Money to you

View Profile
« Reply #1 on: January 17, 2010, 03:57:52 PM »

If you're asking about a specific language, maybe you should post in that specific language's forum?

And you must be talking about a PRX, since the official music player wouldn't be playing at the same time as an EBOOT, and since I've never wrote a PRX yet, I can't help  Razz
Logged
WalangAlam
Jr. Member
**

Karma: +1/-0
Offline Offline

Posts: 79
3889.29 points

View Inventory
Send Money to WalangAlam

View Profile
« Reply #2 on: January 17, 2010, 04:49:10 PM »

If you're asking about a specific language, maybe you should post in that specific language's forum?

And you must be talking about a PRX, since the official music player wouldn't be playing at the same time as an EBOOT, and since I've never wrote a PRX yet, I can't help  Razz

 Laughing and i thought finally somebody answered and could help me Mr. Green

im using c++ and i think its an official prx used by official music player. I was thinking since im asking about function to use or to detect, i posted it here at general. I should have posted it at c++ then.

anybody could help me with this? i also posted the same question in other forum but nobody is answering so far.
Logged
mootoo
Newbie
*

Karma: +0/-1
Offline Offline

Posts: 14
702.12 points

View Inventory
Send Money to mootoo

View Profile
« Reply #3 on: January 17, 2010, 05:39:25 PM »

check this: http://www.psp-programming.com/tutorials/c/lesson06.htm
Logged
WalangAlam
Jr. Member
**

Karma: +1/-0
Offline Offline

Posts: 79
3889.29 points

View Inventory
Send Money to WalangAlam

View Profile
« Reply #4 on: January 17, 2010, 07:16:17 PM »


i checked that already before i made this post. but since im very new to programming, i still don't know the functions im looking for and it was already mentioned there. i already tried researching terms there like pspAudioInit();. i will read it again. is these tutorials also applicable to the official audio player prx?
Logged
mowglisanu

C/C++ Developer
Hero Member
*

Karma: +36/-11
Offline Offline

Posts: 787
0.00 points

View Inventory
Send Money to mowglisanu


View Profile
« Reply #5 on: January 17, 2010, 10:59:37 PM »

>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.
Logged

Check out my:
 Audio lib
 Pmf Viewer
WalangAlam
Jr. Member
**

Karma: +1/-0
Offline Offline

Posts: 79
3889.29 points

View Inventory
Send Money to WalangAlam

View Profile
« Reply #6 on: January 18, 2010, 12:51:52 AM »

>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.
Logged
WalangAlam
Jr. Member
**

Karma: +1/-0
Offline Offline

Posts: 79
3889.29 points

View Inventory
Send Money to WalangAlam

View Profile
« Reply #7 on: February 14, 2010, 05:20:46 PM »

got this working by checking if music_player_module is loaded. my project is working fine Very Happy.
thanks to m0skit0 for that one Cool.
Logged
Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.149 seconds with 31 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com