Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

samplesBuffer always returns zero values #3

Open
clarcrz opened this issue Oct 16, 2018 · 3 comments
Open

samplesBuffer always returns zero values #3

clarcrz opened this issue Oct 16, 2018 · 3 comments

Comments

@clarcrz
Copy link

clarcrz commented Oct 16, 2018

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 clarcrz changed the title samplesBuffer always returns empty values samplesBuffer always returns zero values Oct 18, 2018
@madebyTimo
Copy link

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

@madebyTimo
Copy link

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.

@clarcrz
Copy link
Author

clarcrz commented Nov 12, 2018

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants