FR: Support getting wavetable length from wave files

Alternative, give us a callback for unsupported wav chunks

+1 for the unsupported .wav chunk callbacks, we actually have a need for a few of those …

The wav loader in CHOC happily loads all chunks it finds and just reads it in as base64 encoded binary data. That makes it easy to extend for things like id3 tags, which are commonly used for embedding images. So you may want to look into that until JUCE has something similar.

1 Like

In the mean time this may be useful to you, I wrote a RIFF file parser and then it calls a callback with each chunk: https://github.com/FigBug/Gin/blob/master/modules/gin/utilities/gin_riffparser.h

Still not idea since I need to parse the file twice. Would be nicer if the AudioFormatReader meta data was a bit smarter than just a string pair array.