superctr / ctrmml

MML compiler
GNU General Public License v2.0
22 stars 4 forks source link

Don't error reading WAVs whose samples end on an odd byte position #5

Closed refi64 closed 3 years ago

refi64 commented 3 years ago

With the odd position check at the top, if the final byte position is odd, then the loop is re-entered again, resulting in trying to read data from past the end of the file.

This generally only occurs with 8-bit PCM data.

superctr commented 3 years ago

thanks!