sure, you call "StartRecording", but every time a buffer of audio is available (DataAvailable event), you examine the value of each sample. If the volume is greater than a particular threshold, you write the recorded buffer to your WAV file, if not, you simply discard it.
↧