Skip to content

Add HCA 3.0 decoding support#138

Draft
segfault-bilibili wants to merge 2 commits into
Thealexbarney:masterfrom
segfault-bilibili:hca3.0
Draft

Add HCA 3.0 decoding support#138
segfault-bilibili wants to merge 2 commits into
Thealexbarney:masterfrom
segfault-bilibili:hca3.0

Conversation

@segfault-bilibili
Copy link
Copy Markdown

Ported HCA3.0 decoding support from @bnnm's vgmstream.

Roughly tested to work, however I can see differences in frequency spectrum, especially > 11k bands.

}
int curvePosition = noiseLevel - 5 * scaleFactor / 2 + 2;
//https://github.com/vgmstream/vgmstream/blob/4eecdada9a03a73af0c7c17f5cd6e08518fd7e3f/src/coding/hca_decoder_clhca.c#L1450
if (version >= 0x0300 && curvePosition >= 67) return 0; //FIXME
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that version >= 0x3000 cannot be removed, otherwise HCA 2.0 decoding would break.

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

Successfully merging this pull request may close these issues.

1 participant