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 22.5 wavs #25

Merged
merged 3 commits into from
Jun 20, 2024
Merged

fix 22.5 wavs #25

merged 3 commits into from
Jun 20, 2024

Conversation

agateau
Copy link
Owner

@agateau agateau commented Jun 20, 2024

  • Fix 22.5 khz wav files being reported as truncated by some apps
  • WavSaver: make code more readable
  • Clean up WavExportStrategy

The sizes in the "RIFF" and "data" chunks were correct for a 44.1 khz
wav, but the same value was used for 22.1 wav. Fix that by:

- For the "RIFF" chunk: Using a simple algorithm
- For the "data" chunk: Correctly counting the number of samples written

Fixes #22
- No more public members
- All members use mSnakeCase, with more self-explanatory names
- Input-only members are const and passed to the constructor
@agateau agateau enabled auto-merge June 20, 2024 22:10
@agateau agateau merged commit 86aa042 into master Jun 20, 2024
3 checks passed
@agateau agateau deleted the fix-22.5-wavs branch June 20, 2024 22:12
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