Пример #1
0
 public void Initialize(ISharpControl control)
 {
     this._control        = control;
     this._audioProcessor = new AFProcessor();
     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._noiseProcessor                = new NoiseBlankerProcessor();
     this._noiseProcessor.Enabled        = Utils.GetBooleanSetting("NBEnabled");
     this._noiseProcessor.NoiseThreshold = Utils.GetIntSetting("NBThreshold", 80);
     this._noiseProcessor.PulseWidth     = Utils.GetDoubleSetting("NBPulseWidth", 10.0);
     this._control.RegisterStreamHook(this._noiseProcessor, ProcessorType.RawIQ);
     this._guiControl = new NoiseReductionPanel(this._ifProcessor, this._audioProcessor, this._noiseProcessor);
 }
Пример #2
0
 public NoiseReductionPanel(IFProcessor _ifProcessor, AFProcessor audioProcessor, NoiseBlankerProcessor noiseProcessor) : this(_ifProcessor)
 {
     _audioProcessor = audioProcessor;
     _noiseProcessor = noiseProcessor;
 }