Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMA ADPCM Stereo wav length half reduced #56

Open
q2p0 opened this issue Nov 18, 2021 · 0 comments
Open

IMA ADPCM Stereo wav length half reduced #56

q2p0 opened this issue Nov 18, 2021 · 0 comments

Comments

@q2p0
Copy link

q2p0 commented Nov 18, 2021

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.

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

No branches or pull requests

1 participant