mackron / dr_libs

Audio decoding libraries for C/C++, each in a single source file.
Other
1.24k stars 205 forks source link

WAV loop and cue positions are not byte offsets #267

Open d-musique opened 3 months ago

d-musique commented 3 months ago

Hi. The dr_wav library describes certain of fields from WAV metadata as being byte offsets.

Precisely, the fields

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/