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