Class DistortionEffect
java.lang.Object
com.blackrook.gloop.openal.OALObject
com.blackrook.gloop.openal.OALEffect
com.blackrook.gloop.openal.effect.DistortionEffect
Distortion effect for sound sources.
- Author:
- Matthew Tropiano
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatDistortion edge.protected floatDistortion equalizer bandwidth in Hertz.protected floatDistortion equalizer centering in Hertz.protected floatDistortion gain.protected floatDistortion low-pass cutoff in Hertz. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal floatgetEdge()final floatfinal floatfinal floatgetGain()final floatfinal voidsetEdge(float edge) Set distortion edge (0.0 to 1.0).final voidsetEqualizerBandwidth(float eqBandwidth) Set distortion equalizer bandwidth in Hertz (80.0 to 24000.0).final voidsetEqualizerCenter(float eqCenter) Set distortion equalizer centering in Hertz (80.0 to 24000.0).final voidsetGain(float gain) Set distortion gain (0.01 to 1.0).final voidsetLowPassCutoff(float lowPassCutoff) Set distortion low-pass cutoff in Hertz (80.0 to 24000.0).Methods inherited from class OALObject
clearError, destroy, equals, equals, errorCheck, getName, hashCode, requestContext, toString
-
Field Details
-
edge
protected float edgeDistortion edge. -
gain
protected float gainDistortion gain. -
lowPassCutoff
protected float lowPassCutoffDistortion low-pass cutoff in Hertz. -
eqCenter
protected float eqCenterDistortion equalizer centering in Hertz. -
eqBandwidth
protected float eqBandwidthDistortion equalizer bandwidth in Hertz.
-
-
Constructor Details
-
DistortionEffect
-
-
Method Details
-
getGain
public final float getGain()- Returns:
- the current distortion gain.
-
setGain
public final void setGain(float gain) Set distortion gain (0.01 to 1.0).- Parameters:
gain- the new value.
-
getEdge
public final float getEdge()- Returns:
- the current distortion edge.
-
setEdge
public final void setEdge(float edge) Set distortion edge (0.0 to 1.0).- Parameters:
edge- the new value.
-
getEqualizerBandwidth
public final float getEqualizerBandwidth()- Returns:
- the current distortion equalizer bandwidth in Hertz.
-
setEqualizerBandwidth
public final void setEqualizerBandwidth(float eqBandwidth) Set distortion equalizer bandwidth in Hertz (80.0 to 24000.0).- Parameters:
eqBandwidth- the new value.
-
getEqualizerCenter
public final float getEqualizerCenter()- Returns:
- the current distortion equalizer centering in Hertz.
-
setEqualizerCenter
public final void setEqualizerCenter(float eqCenter) Set distortion equalizer centering in Hertz (80.0 to 24000.0).- Parameters:
eqCenter- the new value.
-
getLowPassCutoff
public final float getLowPassCutoff()- Returns:
- the current distortion low-pass cutoff in Hertz.
-
setLowPassCutoff
public final void setLowPassCutoff(float lowPassCutoff) Set distortion low-pass cutoff in Hertz (80.0 to 24000.0).- Parameters:
lowPassCutoff- the new value.
-