0

I have been using mp3spi, tritonus and JLayer to process mp3 files. I am stuck up at one point where I need mp3 input stream / mp3 audio signal as floating point array. Please help!

Thanks

MLS
  • 617
  • 1
  • 7
  • 14
  • Why do you need a floating point array? – Andrew Thompson Nov 10 '11 at 18:41
  • Include some sample code from the section you are having trouble with. – Perception Nov 10 '11 at 19:00
  • I need floating point array of audio signal to apply FFT and some other formulas on it. I already have C++ code which uses LAME for this purpose. I am looking for pure Java equivalent of LAME which does not depend on any dll or so. – MLS Nov 11 '11 at 05:22
  • please find the sample code : http://stackoverflow.com/questions/8138526/getting-mp3-audio-signal-as-array-in-java – MLS Nov 15 '11 at 15:13
  • If you want a message to reach Perception or myself, you need to reply to one of our answers (not possible, in this case), or add @name before the comment. – Andrew Thompson Nov 15 '11 at 15:25

1 Answers1

0

Have you tried using or sub-classing java.io.DataInputStream? Perhaps the readFloat() method is what you are looking for.

Ryan Ransford
  • 3,224
  • 28
  • 35
  • No. More details available in this link : http://stackoverflow.com/questions/8138526/getting-mp3-audio-signal-as-array-in-java – MLS Nov 15 '11 at 15:14