bugfix if wave is in 8-bit