Prevent float samples from overflowing when converting to 16-bit