private void initializeSynthesizer() { float af[] = equalizer.getBands(); filter1 = new Synthesizer(0, af); if (outputChannels == 2) { filter2 = new Synthesizer(1, af); } }
/** * Sets the equalizer. * * @param f the equalizer */ final void setEqualizer(Object f) { if (spline == null) { spline = new Spline(); } equalizer = new Equalizer(f, spline, information); float af[] = equalizer.getBands(); if (filter1 != null) { filter1.setEQ(af); } if (filter2 != null) { filter2.setEQ(af); } information.put(FA_EQUALIZE, f); }
/** Frees all system resources, which are bounded to this object. */ @Override public void close() { super.close(); if (filter1 != null) { filter1.close(); } filter1 = null; if (filter2 != null) { filter2.close(); } filter2 = null; if (equalizer != null) { equalizer.close(); } equalizer = null; if (spline != null) { spline.close(); } spline = null; }