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

Fix mext soundinfo math #2

Merged
merged 6 commits into from
Apr 29, 2022
Merged

Fix mext soundinfo math #2

merged 6 commits into from
Apr 29, 2022

Conversation

kookster
Copy link
Member

Found a problem where the mext chunk sound information was calculated wrong for 44.1 or 22.05 Khz files with no padding.
Should be 7, was only 3.

Added a fix and additional test for this case.

Also needed to upgrade the closure compiler to work on new m1 laptops ;)

@@ -182,7 +182,7 @@ export class WaveFileCreator extends WaveFileParser {
}
if (
(info.sampleRate == 44100 || info.sampleRate == 22050) &&
info.padding
!info.padding
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the issue that needed to be changed - was checking for if there was padding instead o

@kookster kookster requested review from cavis and farski April 29, 2022 05:29
@kookster kookster merged commit 11b55a8 into master Apr 29, 2022
@kookster kookster deleted the fix/mext_soundinfo_math branch April 29, 2022 18:40
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.

2 participants