예제 #1
0
 private void StartListenning(SoundCaptureDevice device)
 {
     isListenning        = true;
     frequencyInfoSource = new SoundFrequencyInfoSource(device);
     frequencyInfoSource.FrequencyDetected += new EventHandler <FrequencyDetectedEventArgs>(frequencyInfoSource_FrequencyDetected);
     frequencyInfoSource.Listen();
 }
예제 #2
0
 private void StopListenning()
 {
     isListenning = false;
     frequencyInfoSource.Stop();
     frequencyInfoSource.FrequencyDetected -= new EventHandler <FrequencyDetectedEventArgs>(frequencyInfoSource_FrequencyDetected);
     frequencyInfoSource = null;
 }