| View previous topic :: View next topic |
| Author |
Message |
Cyborg
Joined: 18 Jan 2010 Posts: 2
|
Posted: Wed Feb 03, 2010 4:40 am Post subject: Loading the MP3 Files |
|
|
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 |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Wed Feb 03, 2010 7:30 am Post subject: |
|
|
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 |
|
 |
Cyborg
Joined: 18 Jan 2010 Posts: 2
|
Posted: Wed Feb 03, 2010 9:55 am Post subject: |
|
|
| 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 |
|
 |
willow :--)
Joined: 13 Jan 2007 Posts: 126
|
Posted: Wed Feb 03, 2010 11:36 am Post subject: |
|
|
| 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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Feb 03, 2010 1:16 pm Post subject: |
|
|
| 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 |
|
 |
|