Record WAV file while playing.