Class EqualizerConfiguration
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.filter.equalizer.EqualizerConfiguration
-
- Direct Known Subclasses:
Equalizer,EqualizerFactory
public class EqualizerConfiguration extends java.lang.ObjectHolder 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 floatgetGain(int band)voidsetGain(int band, float value)
-
-
-
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.
-
-