Beispiel #1
0
 public unsafe void Process(Complex *buffer, int length)
 {
     if (this._needNewFilter)
     {
         this._filter        = new NoiseFilter(4096);
         this._needNewFilter = false;
     }
     this._filter.NoiseThreshold = (float)this.NoiseThreshold;
     this._filter.Process(buffer, length);
 }
Beispiel #2
0
 public unsafe void Process(float *buffer, int length)
 {
     if (this._needNewFilters)
     {
         this._filter1        = new NoiseFilter(4096);
         this._filter2        = new NoiseFilter(4096);
         this._needNewFilters = false;
     }
     this._filter1.NoiseThreshold = (float)this.NoiseThreshold;
     this._filter2.NoiseThreshold = (float)this.NoiseThreshold;
     this._filter1.Process(buffer, length, 2);
     this._filter2.Process(buffer + 1, length, 2);
 }