dr_libs
dr_libs copied to clipboard
WAV loop and cue positions are not byte offsets
Hi. The dr_wav library describes certain of fields from WAV metadata as being byte offsets.
Precisely, the fields
- smpl
firstSampleByteOffsetandlastSampleByteOffset - cue
sampleByteOffset
However this does not seem to reflect the reality, because the unit appears to be frames. (despite what some dubious sources of documentation claim)
This is validated by LoopAuditioneer software. The source code of openMPT and grandOrgue seem to corroborate. (maybe Polyphone also, I haven't checked)
If a test set is wanted, the Kalvträsk Church file contains wavs with loop and cue. https://familjenpalo.se/vpo/download/