Esempio n. 1
0
 public void Initialize(ISharpControl control)
 {
     this._control        = control;
     this._audioProcessor = new AudioProcessor();
     this._control.RegisterStreamHook(this._audioProcessor, ProcessorType.FilteredAudioOutput);
     this._ifProcessor = new IFProcessor();
     this._control.RegisterStreamHook(this._ifProcessor, ProcessorType.DecimatedAndFilteredIQ);
     this._ifProcessor.NoiseThreshold    = Utils.GetIntSetting("DNRIThreshold", -30);
     this._ifProcessor.Enabled           = Utils.GetBooleanSetting("DNRIEnabled");
     this._audioProcessor.NoiseThreshold = Utils.GetIntSetting("DNRAThreshold", -70);
     this._audioProcessor.Enabled        = Utils.GetBooleanSetting("DNRAEnabled");
     this._guiControl = new ProcessorPanel(this._ifProcessor, this._audioProcessor);
 }
Esempio n. 2
0
 public void Initialize(ISharpControl control)
 {
     this._control = control;
       this._audioProcessor = new AudioProcessor();
       this._control.RegisterStreamHook((object) this._audioProcessor, ProcessorType.FilteredAudioOutput);
       this._ifProcessor = new IFProcessor();
       this._control.RegisterStreamHook((object) this._ifProcessor, ProcessorType.DecimatedAndFilteredIQ);
       this._ifProcessor.NoiseThreshold = Utils.GetIntSetting("DNRIThreshold", -30);
       this._ifProcessor.Enabled = Utils.GetBooleanSetting("DNRIEnabled");
       this._audioProcessor.NoiseThreshold = Utils.GetIntSetting("DNRAThreshold", -70);
       this._audioProcessor.Enabled = Utils.GetBooleanSetting("DNRAEnabled");
       this._guiControl = new ProcessorPanel((INoiseProcessor) this._ifProcessor, (INoiseProcessor) this._audioProcessor);
 }