"data" is aligned differently in this wave file and the buffer was read past its allocated length. Fix this by searching for the buffer in increments of 2 (this finds the "data" for the wav file) added a check not to allow the search to go past the buffer length, so corrupt wave files should not crash.
12 KiB
12 KiB