Class ReverbEffect
java.lang.Object
com.blackrook.gloop.openal.OALObject
com.blackrook.gloop.openal.OALEffect
com.blackrook.gloop.openal.effect.ReverbEffect
Reverb effect for sound and stuff.
- Author:
- Matthew Tropiano
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatReverb high-frequency air absorption gain.protected floatReverb high-frequency ratio.protected floatReverb decay time in seconds.protected floatReverb density factor.protected floatReverb diffusion factor.protected floatReverb gain.protected floatReverb high-frequency gain.protected booleanReverb decay high-frequency limit?protected floatLate reverb delay.protected floatLate reverb gain.protected floatReverb reflection delay in seconds.protected floatReverb reflection gain.protected floatReverb room rolloff factor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatgetGain()final floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal booleanfinal voidsetAirAbsorptionGainHF(float airAbsorptionGainHF) Set reverb high-frequency air absorption gain (0.892 to 1.0).final voidsetDecayHFLimit(boolean limit) Sets the reverb decay high-frequency limit.final voidsetDecayHFRatio(float decayHFRatio) Sets the reverb high-frequency ratio (0.1 to 2.0).final voidsetDecayTime(float decayTime) Set reverb decay time in seconds (0.1 to 20.0).final voidsetDensity(float density) Set reverb density factor (0.0 to 1.0).final voidsetDiffusion(float diffusion) Set reverb diffusion factor (0.0 to 1.0).final voidsetGain(float gain) Set reverb gain (0.0 to 1.0).final voidsetHFGain(float gainHF) Set reverb high-frequency gain (0.0 to 1.0).final voidsetLateDelay(float lateDelay) Set late reverb delay (0.0 to 0.1).final voidsetLateGain(float lateGain) Set late reverb gain (0.0 to 10.0).final voidsetReflectionDelay(float reflectionDelay) Set reverb reflection delay in seconds (0.0 to 0.3).final voidsetReflectionGain(float reflectionGain) Set reverb reflection gain (0.0 to 3.16).final voidsetRoomRolloffFactor(float roomRolloffFactor) Set reverb room rolloff factor (0.0 to 10.0).Methods inherited from class OALObject
clearError, destroy, equals, equals, errorCheck, getName, hashCode, requestContext, toString
-
Field Details
-
density
protected float densityReverb density factor. -
diffusion
protected float diffusionReverb diffusion factor. -
gain
protected float gainReverb gain. -
gainHF
protected float gainHFReverb high-frequency gain. -
decayTime
protected float decayTimeReverb decay time in seconds. -
decayHFRatio
protected float decayHFRatioReverb high-frequency ratio. -
reflectionGain
protected float reflectionGainReverb reflection gain. -
reflectionDelay
protected float reflectionDelayReverb reflection delay in seconds. -
lateGain
protected float lateGainLate reverb gain. -
lateDelay
protected float lateDelayLate reverb delay. -
airAbsorptionGainHF
protected float airAbsorptionGainHFReverb high-frequency air absorption gain. -
roomRolloffFactor
protected float roomRolloffFactorReverb room rolloff factor. -
hfLimit
protected boolean hfLimitReverb decay high-frequency limit?
-
-
Constructor Details
-
ReverbEffect
-
-
Method Details
-
getAirAbsorptionGainHF
public final float getAirAbsorptionGainHF()- Returns:
- the current reverb high-frequency air absorption gain.
-
setAirAbsorptionGainHF
public final void setAirAbsorptionGainHF(float airAbsorptionGainHF) Set reverb high-frequency air absorption gain (0.892 to 1.0).- Parameters:
airAbsorptionGainHF- the new value.
-
getDecayHFRatio
public final float getDecayHFRatio()- Returns:
- the current the current reverb high-frequency ratio.
-
setDecayHFRatio
public final void setDecayHFRatio(float decayHFRatio) Sets the reverb high-frequency ratio (0.1 to 2.0).- Parameters:
decayHFRatio- the new value.
-
getDecayTime
public final float getDecayTime()- Returns:
- the current reverb decay time in seconds.
-
setDecayTime
public final void setDecayTime(float decayTime) Set reverb decay time in seconds (0.1 to 20.0).- Parameters:
decayTime- the new value.
-
getDensity
public final float getDensity()- Returns:
- the current reverb density factor.
-
setDensity
public final void setDensity(float density) Set reverb density factor (0.0 to 1.0).- Parameters:
density- the new value.
-
getDiffusion
public final float getDiffusion()- Returns:
- the current reverb diffusion factor.
-
setDiffusion
public final void setDiffusion(float diffusion) Set reverb diffusion factor (0.0 to 1.0).- Parameters:
diffusion- the new value.
-
getGain
public final float getGain()- Returns:
- the current reverb gain.
-
setGain
public final void setGain(float gain) Set reverb gain (0.0 to 1.0).- Parameters:
gain- the new value.
-
getHFGain
public final float getHFGain()- Returns:
- the current reverb high-frequency gain.
-
setHFGain
public final void setHFGain(float gainHF) Set reverb high-frequency gain (0.0 to 1.0).- Parameters:
gainHF- the new value.
-
isDecayHFLimit
public final boolean isDecayHFLimit()- Returns:
- true if the reverb decay high-frequency limit is set, false if not.
-
setDecayHFLimit
public final void setDecayHFLimit(boolean limit) Sets the reverb decay high-frequency limit. True = limit on, false = off.- Parameters:
limit- the new value.
-
getReflectionDelay
public final float getReflectionDelay()- Returns:
- the current reverb reflection delay in seconds.
-
setReflectionDelay
public final void setReflectionDelay(float reflectionDelay) Set reverb reflection delay in seconds (0.0 to 0.3).- Parameters:
reflectionDelay- the new value.
-
getReflectionGain
public final float getReflectionGain()- Returns:
- the current reverb reflection gain.
-
setReflectionGain
public final void setReflectionGain(float reflectionGain) Set reverb reflection gain (0.0 to 3.16).- Parameters:
reflectionGain- the new value.
-
getRoomRolloffFactor
public final float getRoomRolloffFactor()- Returns:
- the current reverb room rolloff factor.
-
setRoomRolloffFactor
public final void setRoomRolloffFactor(float roomRolloffFactor) Set reverb room rolloff factor (0.0 to 10.0).- Parameters:
roomRolloffFactor- the new value.
-
getLateDelay
public final float getLateDelay()- Returns:
- the current late reverb delay.
-
setLateDelay
public final void setLateDelay(float lateDelay) Set late reverb delay (0.0 to 0.1).- Parameters:
lateDelay- the new value.
-
getLateGain
public final float getLateGain()- Returns:
- the current late reverb gain.
-
setLateGain
public final void setLateGain(float lateGain) Set late reverb gain (0.0 to 10.0).- Parameters:
lateGain- the new value.
-