Class EqualizerEffect
java.lang.Object
com.blackrook.gloop.openal.OALObject
com.blackrook.gloop.openal.OALEffect
com.blackrook.gloop.openal.effect.EqualizerEffect
Equalizer effect for sound sources.
- Author:
- Matthew Tropiano
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatEqualizer high cutoff in Hertz.protected floatEqualizer high gain.protected floatEqualizer low cutoff in Hertz.protected floatEqualizer low gain.protected floatEqualizer first mid center in Hertz.protected floatEqualizer first mid gain.protected floatEqualizer first mid width.protected floatEqualizer second mid center in Hertz.protected floatEqualizer second mid gain.protected floatEqualizer second mid width. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal voidsetHighCutoff(float highCutoff) Set equalizer high cutoff in Hertz (4000.0 to 16000.0).final voidsetHighGain(float highGain) Set equalizer high gain (0.126 to 7.943).final voidsetLowCutoff(float lowCutoff) Set equalizer low cutoff in Hertz (50.0 to 800.0).final voidsetLowGain(float lowGain) Set equalizer low gain (0.126 to 7.943).final voidsetMid1Center(float mid1Center) Set equalizer first mid center in Hertz (200.0 to 3000.0).final voidsetMid1Gain(float mid1Gain) Set equalizer first mid gain (0.126 to 7.943).final voidsetMid1Width(float mid1Width) Set equalizer first mid width (0.01 to 1.0).final voidsetMid2Center(float mid2Center) Set equalizer second mid center in Hertz (1000.0 to 8000.0).final voidsetMid2Gain(float mid2Gain) Set equalizer second mid gain (0.126 to 7.943).final voidsetMid2Width(float mid2Width) Set equalizer second mid width (0.01 to 1.0).Methods inherited from class OALObject
clearError, destroy, equals, equals, errorCheck, getName, hashCode, requestContext, toString
-
Field Details
-
lowGain
protected float lowGainEqualizer low gain. -
lowCutoff
protected float lowCutoffEqualizer low cutoff in Hertz. -
mid1Gain
protected float mid1GainEqualizer first mid gain. -
mid1Center
protected float mid1CenterEqualizer first mid center in Hertz. -
mid1Width
protected float mid1WidthEqualizer first mid width. -
mid2Gain
protected float mid2GainEqualizer second mid gain. -
mid2Center
protected float mid2CenterEqualizer second mid center in Hertz. -
mid2Width
protected float mid2WidthEqualizer second mid width. -
highGain
protected float highGainEqualizer high gain. -
highCutoff
protected float highCutoffEqualizer high cutoff in Hertz.
-
-
Constructor Details
-
EqualizerEffect
-
-
Method Details
-
getHighCutoff
public final float getHighCutoff()- Returns:
- the current equalizer high cutoff in Hertz.
-
setHighCutoff
public final void setHighCutoff(float highCutoff) Set equalizer high cutoff in Hertz (4000.0 to 16000.0).- Parameters:
highCutoff- the new value.
-
getHighGain
public final float getHighGain()- Returns:
- the current equalizer high gain.
-
setHighGain
public final void setHighGain(float highGain) Set equalizer high gain (0.126 to 7.943).- Parameters:
highGain- the new value.
-
getLowCutoff
public final float getLowCutoff()- Returns:
- the current equalizer low cutoff in Hertz.
-
setLowCutoff
public final void setLowCutoff(float lowCutoff) Set equalizer low cutoff in Hertz (50.0 to 800.0).- Parameters:
lowCutoff- the new value.
-
getLowGain
public final float getLowGain()- Returns:
- the current equalizer low gain.
-
setLowGain
public final void setLowGain(float lowGain) Set equalizer low gain (0.126 to 7.943).- Parameters:
lowGain- the new value.
-
getMid1Center
public final float getMid1Center()- Returns:
- the current equalizer first mid center in Hertz.
-
setMid1Center
public final void setMid1Center(float mid1Center) Set equalizer first mid center in Hertz (200.0 to 3000.0).- Parameters:
mid1Center- the new value.
-
getMid1Gain
public final float getMid1Gain()- Returns:
- the current equalizer first mid gain.
-
setMid1Gain
public final void setMid1Gain(float mid1Gain) Set equalizer first mid gain (0.126 to 7.943).- Parameters:
mid1Gain- the new value.
-
getMid1Width
public final float getMid1Width()- Returns:
- the current equalizer first mid width.
-
setMid1Width
public final void setMid1Width(float mid1Width) Set equalizer first mid width (0.01 to 1.0).- Parameters:
mid1Width- the new value.
-
getMid2Center
public final float getMid2Center()- Returns:
- the current equalizer second mid center in Hertz.
-
setMid2Center
public final void setMid2Center(float mid2Center) Set equalizer second mid center in Hertz (1000.0 to 8000.0).- Parameters:
mid2Center- the new value.
-
getMid2Gain
public final float getMid2Gain()- Returns:
- the current equalizer second mid gain.
-
setMid2Gain
public final void setMid2Gain(float mid2Gain) Set equalizer second mid gain (0.126 to 7.943).- Parameters:
mid2Gain- the new value.
-
getMid2Width
public final float getMid2Width()- Returns:
- the current equalizer second mid width.
-
setMid2Width
public final void setMid2Width(float mid2Width) Set equalizer second mid width (0.01 to 1.0).- Parameters:
mid2Width- the new value.
-