Skip to content

Fix LÖVE SoundData generation #21

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

tpimh
Copy link

@tpimh tpimh commented Nov 10, 2024

The number of samples was off by one (not a big deal, but still).

LÖVE supports 8 and 16 bit samples, but they must be set as floats. So generate float samples first, set to SoundData later.

The last commit is just some minor optimization I did while I was at it.

Update: the default bit depth in generateSoundData and exportWAV functions was 0, but that was no longer the case. I fixed it and regenerated the docs.

This pull-request replaces #20 which should be closed.

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