$ 0 0 no need to restart recording. In the DataAvaialbale handler, if the existing WaveFileWriter is too long, close it, create a new one and start writing to that.