forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Loading the MP3 Files

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Cyborg



Joined: 18 Jan 2010
Posts: 2

PostPosted: Wed Feb 03, 2010 4:40 am    Post subject: Loading the MP3 Files Reply with quote

Im kinda new to this site. I wants to know how can I load my mp3 files so it cycles through each song w/o me going back to type in a individual song at a time?

Code:
ms0:/MUSIC/Closer.mp3


I just want my program to read my MUSIC folder and play the songs thats in it.
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Wed Feb 03, 2010 7:30 am    Post subject: Reply with quote

You can use the sce(IO)Dopen functions (dunno if the IO part is part of the function names) to get the files in that directory.

There is a MP3 play sample in the SDK.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
Cyborg



Joined: 18 Jan 2010
Posts: 2

PostPosted: Wed Feb 03, 2010 9:55 am    Post subject: Reply with quote

jojojoris wrote:
You can use the sce(IO)Dopen functions (dunno if the IO part is part of the function names) to get the files in that directory.

There is a MP3 play sample in the SDK.


Yea I know that.

Code:
int fd = sceIoOpen( ms0:/MUSIC/Closer.mp3, PSP_O_RDONLY, 0777 );


But it doesnt show how to play all of your mp3 songs.
Back to top
View user's profile Send private message
willow :--)



Joined: 13 Jan 2007
Posts: 126

PostPosted: Wed Feb 03, 2010 11:36 am    Post subject: Reply with quote

Cyborg wrote:

But it doesnt show how to play all of your mp3 songs.

This is a PSP programming site, so all you should need is a sample to play one mp3.
For basic programming tasks such as a recursive loop in a folder, google is your friend...
_________________
Wagic. Play that card game against an AI on your PSP
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Feb 03, 2010 1:16 pm    Post subject: Reply with quote

Cyborg, read more carefully, he said "sceIoDopen" not "sceIoOpen". "Dopen" is how you open a directory to get a list of files inside it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group