dr_libs icon indicating copy to clipboard operation
dr_libs copied to clipboard

WAV loop and cue positions are not byte offsets

Open d-musique opened this issue 1 year ago • 0 comments

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

Precisely, the fields

  • smpl firstSampleByteOffset and lastSampleByteOffset
  • 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/

d-musique avatar May 30 '24 16:05 d-musique