update WAV writer for interleaved audio support