sfxrlua icon indicating copy to clipboard operation
sfxrlua copied to clipboard

Fix LÖVE SoundData generation

Open tpimh opened this issue 1 year ago • 0 comments

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.

tpimh avatar Nov 10 '24 17:11 tpimh