Fixed clipping in export wav function