ZuluIDE / ZuluIDE-firmware

ZuluIDE emulates a parallel ATA ATAPI CD-ROM drive, or parallel ATA Zip/Removable (read and write) media
https://zuluide.com
Other
47 stars 5 forks source link

Fix multi-bin file audio playback stutter #128

Closed morio closed 2 weeks ago

morio commented 2 weeks ago

getTrackFromLBA was parsing the whole cue file whenever it was called. This caches the current track and the ending LBA of the track. If it is called during audio playback and the LBA is still within the track, the cached track info is returned.

The cache is cleared when set_file is called.

Should fix issue: https://github.com/ZuluIDE/ZuluIDE-firmware/issues/123