AgonConsole8 / agon-vdp

Official Firmware for the Agon Console8: ESP32 VDP
MIT License
43 stars 17 forks source link

fix duration calculation #113

Closed stevesims closed 10 months ago

stevesims commented 10 months ago

duration of a sample when played back calculation was buggy, resulting in looping samples when they shouldn’t

the sample generator’s getDuration call needs to calculate based on how long the underlying audio system will take to step through samples, therefore it is the sample rate of the underlying system that needs to be used for calculations