Zack
Licking doorknobs is illegal on other planets.
C/C++ Developer
Jr. Member
Karma: +3/-0
Offline
Posts: 50
3916.76 points View InventorySend Money to Zack
|
 |
« on: May 06, 2009, 11:37:21 AM » |
|
Hey. During the development of my game I wanted to be able to playback MP3's using the PSP's media engine processor. Knowing that there existed a few libs already I decided to try and use one rather than reinventing the wheel. The best and most powerful one that I saw seemed to be Sakya's example from LightMP3. So I download and tried to compile it but due to changes in the SDK it wouldn't compile. After a little chat to IWN I had it fixed in a matter of minutes  So for anyone else that wants to be able to playback MP3, OGG or Atrac3 on the media engine on there game download this and your all set. It's really easy to integrate. Note : I take no credit for this lib at all. It was made by sakya, all I have done is modify the source code so it compiles on the latest toolchain. Enjoy 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
|
Zack
Licking doorknobs is illegal on other planets.
C/C++ Developer
Jr. Member
Karma: +3/-0
Offline
Posts: 50
3916.76 points View InventorySend Money to Zack
|
 |
« Reply #2 on: May 06, 2009, 04:10:57 PM » |
|
I guess so yeah. If someone wants to move it feel free 
|
|
|
|
|
Logged
|
|
|
|
Flatmush
Has a normal user title
Administrator
Hero Member
Karma: +84/-26
Offline
Posts: 1046
12906.27 points View InventorySend Money to Flatmush
The Omniscient One
|
 |
« Reply #3 on: May 07, 2009, 02:26:24 AM » |
|
Looks like a useful library, mp3 was always one of the major slowdowns in homebrew for the new folk. I moved the topic.
|
|
|
|
|
Logged
|
Firmware History: 2.60 -> 2.71 -> 1.50 -> 3.03oe-c    Hehe I'm a "Hero Member" because I bought posts back when they were in the shop. Creator of FlatEditPSP, funcLib and flAstro
|
|
|
Arshia001
C/C++ Developer
Sr. Member
Karma: +42/-41
Offline
Posts: 268
1224.39 points View InventorySend Money to Arshia001
|
 |
« Reply #4 on: May 11, 2009, 08:48:41 AM » |
|
This lib's EXTREMELY cool,I'll give you that.I'm still recovering from the initial shock!  However,there's a problem with this lib.Correct me if I'm wrong(And I really hope I'm wrong) but this lib can play only one file at a time,meaning you can't have bgm and se playing at the same time.Right?
|
|
|
|
|
Logged
|
|
|
|
mowglisanu
C/C++ Developer
Hero Member
Karma: +36/-11
Offline
Posts: 787
0.00 points View InventorySend Money to mowglisanu
|
 |
« Reply #5 on: May 11, 2009, 02:14:27 PM » |
|
well it looks like you could decode one from ME and one from lib mad at the same time
|
|
|
|
|
Logged
|
|
|
|
Arshia001
C/C++ Developer
Sr. Member
Karma: +42/-41
Offline
Posts: 268
1224.39 points View InventorySend Money to Arshia001
|
 |
« Reply #6 on: May 11, 2009, 09:44:36 PM » |
|
Not even that(it gives only one set of function pointers).Besides,I'm looking for a way to play mp3 without using MAD.You have to load all of the file into the RAM,which is not good.For some unknown reason,I can't seem to get sceMp3 to work...
|
|
|
|
|
Logged
|
|
|
|
Noware
C/C++ Developer
C/C++ Developer
Hero Member
Karma: +41/-2
Offline
Posts: 685
37495.68 points View InventorySend Money to Noware
Avatar by: Jason Hise
|
 |
« Reply #7 on: May 12, 2009, 08:48:52 AM » |
|
He Arshia001,
Can you post your code so I can check if you are missing something ?
Noware
|
|
|
|
|
Logged
|
Reporter - What do you think of western civilization? Gandhi - I think it would be a good idea!
|
|
|
mowglisanu
C/C++ Developer
Hero Member
Karma: +36/-11
Offline
Posts: 787
0.00 points View InventorySend Money to mowglisanu
|
 |
« Reply #8 on: May 12, 2009, 09:05:12 AM » |
|
decoding multiple files through the ME functions at the same time isn't a good idea, I tried it already and many of the frames failed to decode in either file, also when decoding mp3 the at3 functions failed out rite. I never used sceMp3 but I don't think it will work, also it only supports 44100Hz.
|
|
|
|
|
Logged
|
|
|
|
Arshia001
C/C++ Developer
Sr. Member
Karma: +42/-41
Offline
Posts: 268
1224.39 points View InventorySend Money to Arshia001
|
 |
« Reply #9 on: May 12, 2009, 11:05:14 PM » |
|
That's bad.I'm still hoping to get sceMp3 to decode multiple files at once.But if all else fails,I'll end up with my own version of mp3player.h,which EATS ram.
|
|
|
|
|
Logged
|
|
|
|
Zack
Licking doorknobs is illegal on other planets.
C/C++ Developer
Jr. Member
Karma: +3/-0
Offline
Posts: 50
3916.76 points View InventorySend Money to Zack
|
 |
« Reply #10 on: May 13, 2009, 10:10:48 AM » |
|
That's bad.I'm still hoping to get sceMp3 to decode multiple files at once.But if all else fails,I'll end up with my own version of mp3player.h,which EATS ram.
Why not just use this for Mp3 playback and a wav loader (using mikmod) for sound effects? Sound effects with mp3's are not a great idea when your trying to save resources 
|
|
|
|
|
Logged
|
|
|
|
Arshia001
C/C++ Developer
Sr. Member
Karma: +42/-41
Offline
Posts: 268
1224.39 points View InventorySend Money to Arshia001
|
 |
« Reply #11 on: May 14, 2009, 07:30:22 AM » |
|
That's bad.I'm still hoping to get sceMp3 to decode multiple files at once.But if all else fails,I'll end up with my own version of mp3player.h,which EATS ram.
Why not just use this for Mp3 playback and a wav loader (using mikmod) for sound effects? Sound effects with mp3's are not a great idea when your trying to save resources  Well,it's a balance between CPU,RAM and Memory Stick after all.For now,I don't exactly know which method I'll use,but I know I can do all I'll need to do.I finally have my own implementation of sceMp3(plays multiple files simultaneously,of course),and I have your (sayka's) version which should be much better for playing only one files.The rest is trial and error.Still,I'm grateful you put this.Thanx a lot.
|
|
|
|
|
Logged
|
|
|
|
roe-ur-boat
Look who bought all the excess user titles :O
Full Member
 
Karma: +27/-87
Offline
Posts: 124
9999999.99 points View InventorySend Money to roe-ur-boat
|
 |
« Reply #12 on: December 20, 2009, 07:42:59 PM » |
|
It seems the attachment link is down, getting a 404 - Attachment Not Found error.
|
|
|
|
|
Logged
|
|
|
|
|
|
Arshia001
C/C++ Developer
Sr. Member
Karma: +42/-41
Offline
Posts: 268
1224.39 points View InventorySend Money to Arshia001
|
 |
« Reply #14 on: December 22, 2009, 09:08:16 AM » |
|
How exactly do you use this code in a game?It was meant for creating a PLAYER,not a game.You need more than one channel for a game,unless there are no sound effects.
|
|
|
|
|
Logged
|
|
|
|
|