-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for 24 and 32 bit .wav's
Apparently those .wav's are always format_code 3? The conversion is SLOW on long files (like songs). It requires going through every byte to do the conversion. So if performance is important, GDScript is just not fast enough for this.
- Loading branch information
Showing
1 changed file
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tested this, ran into issue with out of bounds. Fixed by limiting end of the range by the step size.
for i in range(0, data.size() - 3, 3):
Same in the next snippet below
for i in range(0, data.size() - 4, 4):