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

samplesBuffer always returns zero values #3

Open

Description

@clarcrz

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.

Activity

  1. changed the title [-]samplesBuffer always returns empty values[/-] [+]samplesBuffer always returns zero values[/+] on Oct 18, 2018
  2. madebyTimo commented on Nov 3, 2018

    @madebyTimo

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

  3. madebyTimo commented on Nov 8, 2018

    @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.

  4. clarcrz commented on Nov 12, 2018

    @clarcrz
    Author

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions