changed over from LAME encoder to WAV writer