This project has moved and is read-only. For the latest updates, please go here.

Record multiple times

Nov 11, 2009 at 9:42 AM

I'm having a problem recording multiple times (first time record to file x.wav, stop the recording and start recording again to file y.wav) without having to quit the application.  Using the RecordingForm app on the demo project, you can't do:

1. Start Recording (using WASAPI)
2. Stop Recording
3. Start Recording again <--- "null pointer exception"

I tried various tricks like not calling Dispose() and set to null on the "waveIn" variable (inside waveIn_RecordingStopped).  It seems like the variable "audioClientInterface" of the AudioClient instance is null after the first successful recording.

Any idea on how to record the 2nd/3rd/4th/... times without restarting the app?  TIA.

Nov 6, 2010 at 12:52 PM

finally checked in a fix for this. better late than never!