public Output(int outputSampleRate, int passFrequency, int attenuation, WindowType windowType) { mCleanupFilter = new ComplexFIRFilter( FilterFactory.getCICCleanupFilter( outputSampleRate, passFrequency, attenuation, windowType), 0.4d); mCleanupFilter.setListener(mHalfBandFilter); }
/** * Receiver method for the output adapter to receive a filtered, decimated sample, apply gain * correction, apply cleanup filtering and output the sample values as a complex sample. */ @Override public void receive(float left, float right) { mCleanupFilter.receive(new ComplexSample(left, right)); }