fix floating point errors #13
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: 80486DX2-66/C-JS-bytebeat-render#13
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix floating point errors which happen because converting very big integer values to floating point values gets them rounded, messing up the sound.
It happens after:
16777217 / sample_rate
seconds (float
, 32-bit)4294967295 / sample_rate
seconds (double
, 64-bit)