WAV byte array to AudioBuffer


What’s the best way go from in memory binary WAV data including headers and meta to AudioBuffer. I’m trying to get a web demo of Blackbox software and since it’s been ported to Juce would like to use Juce to build WebAssembly and I have figured out how to pass raw binary data into juce but not sure on the best approach to parse…


Maybe something like this to get the audioformat reader from the data :

MemoryInputStream stream(dataptr, datasize, false);
auto reader = audioformatmanager.createReaderFor(&stream);


Ah cool… Thought it would be something like that cheers