changed over from LAME encoder to Wav writer