public void Awake()
 {
     // Setup loopback audio and start listening
     _wasapiAudio = new Wasapi.WasapiAudio(CaptureType, SpectrumSize, ScalingStrategy, MinFrequency, MaxFrequency, Filters, spectrumData =>
     {
         _spectrumData = spectrumData;
     });
     _wasapiAudio.StartListen();
 }
 public void RestartListen()
 {
     if (_wasapiAudio != null)
     {
         _wasapiAudio.StopListen();
         _wasapiAudio = null;
         _wasapiAudio = new Wasapi.WasapiAudio(CaptureType, SpectrumSize, ScalingStrategy, MinFrequency, MaxFrequency, Filters, spectrumData =>
         {
             _spectrumData = spectrumData;
         });
         _wasapiAudio.StartListen();
     }
 }