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 fields holding smpl/cue offsets as they are in samples not bytes #270

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

rasky
Copy link

@rasky rasky commented Jan 7, 2025

As per discussion in #267, I've just renamed the fields. This will cause breakages to users that can reevaluate their codebase wrt those fields.

Fixes #267

@rasky
Copy link
Author

rasky commented Jan 7, 2025

cc @SamWindell as they added those fields

@SamWindell
Copy link
Contributor

Looks good to me. Byte offset does seem wrong. I've checked the source code for JUCE as well and they read/write the value as samples not bytes.

@mackron mackron changed the base branch from master to dev January 7, 2025 23:26
@mackron
Copy link
Owner

mackron commented Jan 7, 2025

Thanks for this. I'll get this merged when I do another pass on dr_wav. Since this is breaking the API I might take the opportunity to make a few other changes I've got noted down.

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.

WAV loop and cue positions are not byte offsets
3 participants