Skip to content

Fix LÖVE SoundData generation#21

Open
tpimh wants to merge 4 commits intonucular:masterfrom
tpimh:sounddata-fix
Open

Fix LÖVE SoundData generation#21
tpimh wants to merge 4 commits intonucular:masterfrom
tpimh:sounddata-fix

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.

2 participants

Comments