Skip to content

IMA ADPCM Stereo wav length half reduced #56

@q2p0

Description

@q2p0

Hi.

I'm using libnyquist.
And found that while decoding wavs of type IMA ADPCM of two channels the length of the decoded file is reduced to half.
If I add

        if (wavHeader.channel_count == 2)
          totalSamples *= 2;

On WavDecoder.cpp line 309 the problem seems to be fixed.

But I'm not sure if it is the right solution.

Thanks.

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