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

[BUGFIX] Avoid integer overflow when calculating sound length #1

Open
wants to merge 32 commits into
base: dev-funkin
Choose a base branch
from

Conversation

NotHyper-474
Copy link

@NotHyper-474 NotHyper-474 commented Jul 29, 2024

Linked Issues

Fixes FunkinCrew/Funkin#3070 (who the heck would play a 25+ minute long song anyway?)

Description

Important

This will also require bumping Funkin's hmm OpenFL commit hash to work

This is basically commit 7a2f328 cherry-picked from upstream, details on what this exactly fixes are better explained by the commit's description. But it would be ideal to upgrade Funkin's OpenFL instead, I think.

scanline and others added 30 commits September 24, 2017 04:14
Implemented using WebAudio API targeting HTML5 and OpenAL targeting Windows & Neko
EliteMasterEric and others added 2 commits April 3, 2024 20:30
Multiplying `data.length * 8` produces a high number, which in the case of very long audio files can exceed the integer limit. Multiplying by 8.0 coerces to float, allowing much higher values.
@EliteMasterEric EliteMasterEric changed the base branch from develop to dev-funkin July 29, 2024 21:00
@NotHyper-474
Copy link
Author

NotHyper-474 commented Jul 29, 2024

Since dev-funkin has more recent commits than develop it already has this fix.

Looks like you're just gonna fast-forward dev-funkin into develop so would it be better to close this PR?

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.

Bug Report: Chart Editor Has A Maximum Song Length of 25 Minutes and 21.742 Seconds
6 participants