I’m working on a class to decode a header less IMA ADPCM file extracted from a video game, the idea is to save it to a WAV file. The code works more or less fine, but there’s a