JavaMP3 icon indicating copy to clipboard operation
JavaMP3 copied to clipboard

samplesBuffer always returns zero values

Open clarcrz opened this issue 7 years ago • 3 comments

I tried using this library to decode mp3 to PCM. There were no errors but when I read the PCM samples using the decodeFullyInto() function, the samplesBuffer does not contain any values (all zero values). The mainData byte array contains values so I'm not quite sure what the issue is.

clarcrz avatar Oct 16 '18 09:10 clarcrz

Hello, same problem here. The decodeFullyInto() function only writes zero values into the OutputStream

madebyTimo avatar Nov 03 '18 12:11 madebyTimo

Hey, I found a solution. The problem was that the decodeFullyInto() function only decoded one Frame, not like descripted the whole sound. You have to use the version from kevinstadler (https://github.com/kevinstadler/JavaMP3). He fixed the decodeFullyInto() function so that it doesn't just decode one frame.

madebyTimo avatar Nov 08 '18 18:11 madebyTimo

You just saved my life. I'll try this one out. Thanks!!

Edit: I tried it out and I'm still getting zero values

clarcrz avatar Nov 12 '18 01:11 clarcrz