Added some logic to deal with incorrectly encoded 8-bit audio.