| View previous topic :: View next topic |
| Author |
Message |
rinco
Joined: 21 Jan 2005 Posts: 255 Location: Canberra, Australia
|
Posted: Wed Feb 02, 2005 9:59 pm Post subject: libmp3 now in cvs |
|
|
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 |
|
 |
Saotome

Joined: 03 Apr 2004 Posts: 182
|
Posted: Wed Feb 02, 2005 10:20 pm Post subject: |
|
|
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 |
|
 |
rinco
Joined: 21 Jan 2005 Posts: 255 Location: Canberra, Australia
|
Posted: Wed Feb 02, 2005 10:36 pm Post subject: |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Thu Feb 03, 2005 3:50 am Post subject: |
|
|
Your request sounds nice
Open Source made me lazy
Send your patch or die _________________ "He was warned..." |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Thu Feb 03, 2005 4:31 am Post subject: |
|
|
Dark Lord Of the Sif,
May I call you mister brown?
You've gone haiku-coo. |
|
| Back to top |
|
 |
mharris
Joined: 25 Jan 2004 Posts: 155 Location: Annapolis, MD, USA
|
Posted: Thu Feb 03, 2005 7:59 am Post subject: |
|
|
| ooPo wrote: | Dark Lord Of the Sif,
May I call you mister brown?
You've gone haiku-coo. | Mod +1 Funny |
|
| Back to top |
|
 |
radad
Joined: 19 May 2004 Posts: 246 Location: Melbourne, Australia
|
Posted: Thu Feb 03, 2005 8:32 am Post subject: |
|
|
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 |
|
 |
rinco
Joined: 21 Jan 2005 Posts: 255 Location: Canberra, Australia
|
Posted: Thu Feb 03, 2005 8:45 am Post subject: |
|
|
no id3 yet,
but i am working on this,
do not heed the sif |
|
| Back to top |
|
 |
Raizor
Joined: 18 Jan 2004 Posts: 60 Location: out there
|
Posted: Fri Feb 04, 2005 3:46 am Post subject: |
|
|
| rinco, you rocko! |
|
| Back to top |
|
 |
rinco
Joined: 21 Jan 2005 Posts: 255 Location: Canberra, Australia
|
Posted: Sun Feb 06, 2005 11:41 pm Post subject: madplayer with id3v2 |
|
|
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 |
|
 |
rinco
Joined: 21 Jan 2005 Posts: 255 Location: Canberra, Australia
|
Posted: Tue Feb 08, 2005 12:28 am Post subject: |
|
|
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 |
|
 |
|