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