Class EqualizerConfiguration

  • Direct Known Subclasses:
    Equalizer, EqualizerFactory

    public class EqualizerConfiguration
    extends java.lang.Object
    Holder of equalizer configuration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected float[] bandMultipliers  
    • Constructor Summary

      Constructors 
      Constructor Description
      EqualizerConfiguration​(float[] bandMultipliers)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getGain​(int band)  
      void setGain​(int band, float value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bandMultipliers

        protected final float[] bandMultipliers
    • Constructor Detail

      • EqualizerConfiguration

        public EqualizerConfiguration​(float[] bandMultipliers)
        Parameters:
        bandMultipliers - The band multiplier values. Keeps using this array internally, so the values can be changed externally.
    • Method Detail

      • setGain

        public void setGain​(int band,
                            float value)
        Parameters:
        band - The index of the band. If this is not a valid band index, the method has no effect.
        value - The multiplier for this band. Default value is 0. Valid values are from -0.25 to 1. -0.25 means that the given frequency is completely muted and 0.25 means it is doubled. Note that this may change the volume of the output.
      • getGain

        public float getGain​(int band)
        Parameters:
        band - The index of the band.
        Returns:
        The multiplier for this band. Default value is 0.