Reading MP3 sample frames in Java?

J

Joe Emenaker

Okay... I'm getting a little frustrated....

I'm trying to be able to access the actual samples from a mp3 file in
Java. For example... suppose that I was writing an app where I wanted
to be able to display, graphically, the waveform that was being played
(like SoundForge, say).

I've found plenty of examples on the web which implement a player (by
piping a decoder right into the sound card) and ones that convert from
one format to another (again, by merely hooking a decoder up to an
encoder). However, I haven't found out how to say "Give me the next
16-bit sample".

I have found AudioInputStream.read(), but that kinda looks like the
undecoded data.

Anybody have any experience doing this kind of thing?

- Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top