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 

libmp3 now in cvs

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



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Wed Feb 02, 2005 9:59 pm    Post subject: libmp3 now in cvs Reply with quote

lib version of ps2mp3.
now in cvs.
top of readme:

What is it
~~~~
A wrapper around the libmad library that manages mp3 operations

What does it do
~~~~
You execute the PlayMP3 function with a filename and a callback.

The callback will be executed during the decoding of the mp3. Be sure
to return from this function quickly else the audio may stutter or freeze.
Back to top
View user's profile Send private message
Saotome



Joined: 03 Apr 2004
Posts: 182

PostPosted: Wed Feb 02, 2005 10:20 pm    Post subject: Reply with quote

nice,
i already had a look on the example (it plays an mp3 file from host) and was wondering if you could easily modify it to play an mp3-file from a memory buffer (i.e. you load the whole mp3 file into ee memory and play if from there).
thanks
_________________
infj
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Wed Feb 02, 2005 10:36 pm    Post subject: Reply with quote

Playing from memory instead of a filesystem could be done...
But I'm not going to do it.
Although I will accept a patch.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu Feb 03, 2005 3:50 am    Post subject: Reply with quote

Your request sounds nice
Open Source made me lazy
Send your patch or die
_________________
"He was warned..."
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Feb 03, 2005 4:31 am    Post subject: Reply with quote

Dark Lord Of the Sif,
May I call you mister brown?
You've gone haiku-coo.
Back to top
View user's profile Send private message Visit poster's website
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Thu Feb 03, 2005 7:59 am    Post subject: Reply with quote

ooPo wrote:
Dark Lord Of the Sif,
May I call you mister brown?
You've gone haiku-coo.
Mod +1 Funny
Back to top
View user's profile Send private message AIM Address
radad



Joined: 19 May 2004
Posts: 246
Location: Melbourne, Australia

PostPosted: Thu Feb 03, 2005 8:32 am    Post subject: Reply with quote

Good work. I was going to work on somehting like this. Haven't had the time though.

I haven't looked at the source yet but does your library handle mp3s with tags?
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Thu Feb 03, 2005 8:45 am    Post subject: Reply with quote

no id3 yet,
but i am working on this,
do not heed the sif
Back to top
View user's profile Send private message
Raizor



Joined: 18 Jan 2004
Posts: 60
Location: out there

PostPosted: Fri Feb 04, 2005 3:46 am    Post subject: Reply with quote

rinco, you rocko!
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Sun Feb 06, 2005 11:41 pm    Post subject: madplayer with id3v2 Reply with quote

i'll clean it up some and put in cvs tomorrow... here is some teaser output:

loadelf: fname host:bin/madplay.elf secname all
Input ELF format filename = host:bin/madplay.elf
0 00100000 0004c194 .....
Loaded, host:bin/madplay.elf
start address 0x1000e0
gp address 00000000
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
loadmodule: fname rom0:LIBSD args 0 arg
loadmodule: id 33, ret 0
loadmodule: fname host:irx/sjpcm.irx args 0 arg
loadmodule: id 34, ret 0
open name host:contrib/4.mp3 flag 1 data 41378
output: sample frequency 44100 Hz not available; using 48000 Hz
output: resampling 44100 Hz to 48000 Hz
Title: Numb/Encore(Live)
Artist: Jay-Z And Linkin Park
Album: Collision Course(DVDA)
8018 frames decoded (5124095576013384:31:33.9), +1.1 dB peak amplitude, 6762 clipped samples
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Tue Feb 08, 2005 12:28 am    Post subject: Reply with quote

I have checked into CVS the files I added/changed to compile the latest
versions of libid3tag, libmad and madplay. The original sources can be
obtained from the libmad website.

If you look at the changes to libmad and libid3tag you will see there is
barely anything to it! For the madplay application I created an sjpcm
audio output module, which I hope to get added to the core of madplay.

I also hacked in my first attempt at a timer using a vsync interrupt
handler (thanks gslib!).

I should probably state that the libmp3 library does not currently bind
against this new and improved player.

Requires zlib (from ps2-packer) and isjcmp. No more libsample nonsense.

And my mp3 of choice for testing stereo?...

Quote:

Title: 360 Degrees (Oh Yeah?)
Composer: Alex Gifford
Artist: Propellerheads
Album: Decksandrumsandrockandroll [UK]
Track: 5/13
Year: 1998
Genre: Electronica/Dance
Encoder: iTunes v4.7.1
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 -> PS2 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