this is a project i made for personal use so i haven't documented it, but the repo's about describes what it does
this repo is based on the code from https://github.com/hexa0/wrap-remainder-loop to do most of the heavy lifting for decoding riff wave files.