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:18:45 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] 2
Print
Author Topic: Mp3Me Lib - MP3 Playback On Me Processor (for devs)  (Read 4220 times)
Zack
Licking doorknobs is illegal on other planets.
C/C++ Developer
Jr. Member
*

Karma: +3/-0
Offline Offline

Posts: 50
3916.76 points

View Inventory
Send Money to Zack

View Profile WWW
« 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 Smile

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

My Releases :



^-------------------------^

^-------------------------^



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 #1 on: May 06, 2009, 03:17:25 PM »

Shouldn't this be in the Source Code Repository
Logged

Check out my:
 Audio lib
 Pmf Viewer
Zack
Licking doorknobs is illegal on other planets.
C/C++ Developer
Jr. Member
*

Karma: +3/-0
Offline Offline

Posts: 50
3916.76 points

View Inventory
Send Money to Zack

View Profile WWW
« Reply #2 on: May 06, 2009, 04:10:57 PM »

I guess so yeah.

If someone wants to move it feel free Smile
Logged

My Releases :



^-------------------------^

^-------------------------^

Flatmush
Has a normal user title
Administrator
Hero Member
*

Karma: +84/-26
Offline Offline

Posts: 1046
12906.27 points

View Inventory
Send Money to Flatmush

The Omniscient One


View Profile WWW
« 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

I am nerdier than 66% of all people. Are you nerdier? Click here to find out!I am 62% loser. What about you? Click here to find out!NerdTests.com User Test: The Can I Run A Business Test.

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 Offline

Posts: 268
1224.39 points

View Inventory
Send Money to Arshia001

View Profile
« 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! Mr. Green

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

Check out this audio library:
http://www.psp-programming.com/forums/index.php/topic,4338.0.html

Thanks for all the Karma,you guys!
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: 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

Check out my:
 Audio lib
 Pmf Viewer
Arshia001

C/C++ Developer
Sr. Member
*

Karma: +42/-41
Offline Offline

Posts: 268
1224.39 points

View Inventory
Send Money to Arshia001

View Profile
« 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

Check out this audio library:
http://www.psp-programming.com/forums/index.php/topic,4338.0.html

Thanks for all the Karma,you guys!
Noware
C/C++ Developer
C/C++ Developer
Hero Member
*

Karma: +41/-2
Offline Offline

Posts: 685
37495.68 points

View Inventory
Send Money to Noware

Avatar by: Jason Hise


View Profile
« 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 Offline

Posts: 787
0.00 points

View Inventory
Send Money to mowglisanu


View Profile
« 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

Check out my:
 Audio lib
 Pmf Viewer
Arshia001

C/C++ Developer
Sr. Member
*

Karma: +42/-41
Offline Offline

Posts: 268
1224.39 points

View Inventory
Send Money to Arshia001

View Profile
« 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

Check out this audio library:
http://www.psp-programming.com/forums/index.php/topic,4338.0.html

Thanks for all the Karma,you guys!
Zack
Licking doorknobs is illegal on other planets.
C/C++ Developer
Jr. Member
*

Karma: +3/-0
Offline Offline

Posts: 50
3916.76 points

View Inventory
Send Money to Zack

View Profile WWW
« 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 Razz
Logged

My Releases :



^-------------------------^

^-------------------------^

Arshia001

C/C++ Developer
Sr. Member
*

Karma: +42/-41
Offline Offline

Posts: 268
1224.39 points

View Inventory
Send Money to Arshia001

View Profile
« 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 Razz

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

Check out this audio library:
http://www.psp-programming.com/forums/index.php/topic,4338.0.html

Thanks for all the Karma,you guys!
roe-ur-boat
Look who bought all the excess user titles :O
Full Member
***

Karma: +27/-87
Offline Offline

Posts: 124
9999999.99 points

View Inventory
Send Money to roe-ur-boat

View Profile
« 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
Gcod3r
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1
136.11 points

View Inventory
Send Money to Gcod3r

View Profile
« Reply #13 on: December 21, 2009, 02:40:16 AM »

Here is a link for that file... I personally find this mp3 player very nice to use in a game.

http://ifile.it/25ymrnk

hope this help. Razz
Logged
Arshia001

C/C++ Developer
Sr. Member
*

Karma: +42/-41
Offline Offline

Posts: 268
1224.39 points

View Inventory
Send Money to Arshia001

View Profile
« 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

Check out this audio library:
http://www.psp-programming.com/forums/index.php/topic,4338.0.html

Thanks for all the Karma,you guys!
Pages: [1] 2
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.447 seconds with 38 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com