QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

[Example] Simple MP3 Player (source)

This is a discussion on [Example] Simple MP3 Player (source) within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I made this because I was bored, and wanted to see if there were any simple mp3 players around. of ...

Reply
 
LinkBack Thread Tools
Old 08-01-2008, 06:00 PM   #1
 
Join Date: Jul 2008
Posts: 42
Trader Feedback: 0
Default [Example] Simple MP3 Player (source)

I made this because I was bored, and wanted to see if there were any simple mp3 players around. of course there was, but none open source so I could modify them. so I put this together quickly, and now everyone else can use it for themselves

Press X to choose a song and it plays

http://pspuploads.net63.net/download...emp3player.rar

Last edited by Dark_sabre; 08-01-2008 at 06:17 PM..
Dark_sabre is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2008, 06:05 PM   #2
 
Join Date: Mar 2007
Posts: 755
Trader Feedback: 0
Default

Link doesn't work.
And if this is Lua, it won't be very helpful because MP3 playing in Lua is as simple as calling some functions.
__________________
[I][U]QJ took away my sig. :([/U][/I]
michaelp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2008, 06:14 PM   #3
 
MiKeY188's Avatar
 
Join Date: Apr 2008
Location: Ireland
Posts: 979
Trader Feedback: 0
Default

Upload the file with the attachment button in the edit option.

i cant see it being coded in LUA if its the source but maybe.
MiKeY188 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2008, 06:17 PM   #4
 
Join Date: Jul 2008
Posts: 42
Trader Feedback: 0
Default

link fixed. and this is in C.
Dark_sabre is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2008, 07:26 PM   #5

OMFG
 
Slasher's Avatar
 
Join Date: Jul 2005
Location: Toronto
Posts: 2,816
Trader Feedback: 0
Default

Nice job, appreciate the effort.
The only thing I recommend against is using libmad to play your mp3s. It's quite slow. You can actually use the psp hardware media engine to run mp3's, and is much quicker.

There was an mp3 player made not long ago which was open source, and made use of the psps media engine. You can check it out here.


PS. In your code, you have no idea why the callbacks are there? Come on. It's what allows your HOME button to function
Slasher is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2008, 07:27 PM   #6
 
Join Date: Mar 2007
Posts: 755
Trader Feedback: 0
Default

Quote:
Originally Posted by Dark_sabre View Post
link fixed. and this is in C.
Okay, then good job on this.
__________________
[I][U]QJ took away my sig. :([/U][/I]
michaelp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2008, 07:35 PM   #7
 
Join Date: Jul 2008
Posts: 42
Trader Feedback: 0
Default

Quote:
Originally Posted by Slasher View Post
PS. In your code, you have no idea why the callbacks are there? Come on. It's what allows your HOME button to function
lol nope, it doesnt tell you on the psp programming tuts, this is his:

Quote:
And now on to what I like to call the twilight zone. I call it that because at this moment, I have no clue how it works or why, but I do intend finding out some day. Anyway, these functions are necessary for your code.
and

Quote:
// TWILIGHT ZONE! <do doo do doo>
/* Exit callback */
int exit_callback(int arg1, int arg2, void *common) {
sceKernelExitGame();
return 0;
}

/* Callback thread */
int CallbackThread(SceSize args, void *argp) {
int cbid;

cbid = sceKernelCreateCallback(" Exit Callback", exit_callback, NULL);
sceKernelRegisterExitCall back(cbid);

sceKernelSleepThreadCB();

return 0;
}

/* Sets up the callback thread and returns its thread id */
int SetupCallbacks(void) {
int thid = 0;

thid = sceKernelCreateThread("up date_thread", CallbackThread, 0x11, 0xFA0, 0, 0);
if(thid >= 0) {
sceKernelStartThread(thid , 0, 0);
}

return thid;
}
// END OF TWILIGHT ZONE! <do doo do do>
lol
Dark_sabre is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2008, 07:45 PM   #8

OMFG
 
Slasher's Avatar
 
Join Date: Jul 2005
Location: Toronto
Posts: 2,816
Trader Feedback: 0
Default

Pretty pathetic when somebody who makes psp programming tutorials doesn't know what that does... :/

It's really easy to understand if you just look at it eh.

SetupCallbacks creates & starts the CallbackThread, which then creates an additional callback thread setting it to do exit_callback when HOME is pressed and YES is selected.
Slasher is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2008, 11:01 PM   #9
Enter Custom Title
 
Join Date: Feb 2006
Location: United States
Posts: 1,992
Trader Feedback: 0
Default

That twilight zone thing was funny. lol

What tutorial did you use? I'm pretty sure the one at psp-programming doesnt say that but its been a while since i read that..
CoBrA2168 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 01:19 AM   #10
 
Join Date: Jul 2008
Posts: 42
Trader Feedback: 0
Default

http://www.psp-programming.com/tutor...lesson06-2.htm

thats where it says the twilight zone thing XD
Dark_sabre is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 02:18 AM   #11
Raining
 
wicked_fable's Avatar
 
My Mood: Relaxed
Join Date: Jun 2005
Real First Name: Daniel
Location: In The Fog...
Just Played: Persona 4
Posts: 545
Trader Feedback: 0
Default

Quote:
Originally Posted by Slasher View Post
Pretty pathetic when somebody who makes psp programming tutorials doesn't know what that does... :/

It's really easy to understand if you just look at it eh.

SetupCallbacks creates & starts the CallbackThread, which then creates an additional callback thread setting it to do exit_callback when HOME is pressed and YES is selected.
Ha, I have not even begun to learn C++ yet and I can still get the drift of that piece of code as well. Somebody over at a certain site shouldn't be making tutorials...

Anyway, pretty neat. So your basic idea is just to provide this as the core for someone to build maybe something more complex around? Or was this literally just a test of your abilities as a result of being bored? Heh, if it is the former I hope you provide updates.
__________________
wicked_fable is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 02:57 AM   #12
 
Join Date: Jul 2008
Posts: 42
Trader Feedback: 0
Default

bit of both really, I'm planning on making a decent mp3 player or a shell, probably the first of the two , I couldnt compete wuth nervos or irshell :P

and also, the tuts site that I was on was www.psp-programming.com or something like that :P
Dark_sabre is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 10:08 AM   #13
 
Join Date: Jan 2008
Posts: 612
Trader Feedback: 0
Default

1. Don't make an mp3 player, that's nearly been perfected on the psp.
2. Don't make a shell, that's nearly been perfected on the psp, twice.
3. We know you were on PSP-Programming because that's the domain of the URL to the tutorial to which you were referring.
TurtlesPwn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 10:50 AM   #14

Developer
 
slicer4ever's Avatar
 
Join Date: Jul 2005
Location: everywhere
Posts: 3,357
Trader Feedback: 0
Default

you guys do know how old those tutorials are right, their from when the damn community was getting started, so you should really think twice about bashing a tut that is very old

http://forums.qj.net/84437-post1.html

days before people fully understood the psp like we do now
__________________
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects

Last edited by slicer4ever; 08-02-2008 at 11:11 AM..
slicer4ever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 11:50 AM   #15
 
FreePlay's Avatar
 
Join Date: Dec 2005
Location: h0000000rj
Posts: 12,858
Trader Feedback: 0
Default

It doesn't matter how old the tutorial is. People knew then what those functions did. If they didn't, they wouldn't know how to use them.
__________________
[qj now fails.]
FreePlay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 12:04 PM   #16
 
M33_User's Avatar
 
Join Date: May 2008
Real First Name: M33
Posts: 291
Trader Feedback: 0
Default

Exactly, so leave him alone and download this and leave your negative comments away from here.
__________________
Currently open for Testing. PM me. QJ letter limit is retarded.
M33_User is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
mp3 , player , simple , source

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 09:35 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us