Ejemplo n.º 1
0
  private void initializeSynthesizer() {
    float af[] = equalizer.getBands();

    filter1 = new Synthesizer(0, af);
    if (outputChannels == 2) {
      filter2 = new Synthesizer(1, af);
    }
  }
Ejemplo n.º 2
0
  /**
   * 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);
  }