Class EchoEffect
java.lang.Object
com.blackrook.gloop.openal.OALObject
com.blackrook.gloop.openal.OALEffect
com.blackrook.gloop.openal.effect.EchoEffect
Echo/Delay effect for sound sources.
- Author:
- Matthew Tropiano
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal floatfinal floatgetDelay()final floatfinal floatfinal floatfinal voidsetDamping(float damping) Sets this effect's damping scalar (0.0 to 0.99).final voidsetDelay(float delay) Sets this effect's delay in seconds (0.0 to 0.207).final voidsetFeedback(float feedback) Sets this effect's feedback scalar (0.0 to 1.0).final voidsetLRDelay(float lrDelay) Sets this effect's LR delay in seconds (0.0 to 0.404).final voidsetSpread(float spread) Sets this effect's spread (-1.0 to 1.0).Methods inherited from class OALObject
clearError, destroy, equals, equals, errorCheck, getName, hashCode, requestContext, toString
-
Field Details
-
delay
protected float delayEcho delay in seconds. -
lrDelay
protected float lrDelayEcho LR delay in seconds. -
damping
protected float dampingEcho damping. -
feedback
protected float feedbackEcho feedback. -
spread
protected float spreadEcho spread.
-
-
Constructor Details
-
EchoEffect
-
-
Method Details
-
getDelay
public final float getDelay()- Returns:
- this effect's delay in seconds.
-
setDelay
public final void setDelay(float delay) Sets this effect's delay in seconds (0.0 to 0.207).- Parameters:
delay- the new value.
-
getLRDelay
public final float getLRDelay()- Returns:
- this effect's LR delay in seconds.
-
setLRDelay
public final void setLRDelay(float lrDelay) Sets this effect's LR delay in seconds (0.0 to 0.404).- Parameters:
lrDelay- the new value.
-
getFeedback
public final float getFeedback()- Returns:
- this effect's feedback scalar.
-
setFeedback
public final void setFeedback(float feedback) Sets this effect's feedback scalar (0.0 to 1.0).- Parameters:
feedback- the new value.
-
getDamping
public final float getDamping()- Returns:
- this effect's damping scalar.
-
setDamping
public final void setDamping(float damping) Sets this effect's damping scalar (0.0 to 0.99).- Parameters:
damping- the new value.
-
getSpread
public final float getSpread()- Returns:
- this effect's spread.
-
setSpread
public final void setSpread(float spread) Sets this effect's spread (-1.0 to 1.0).- Parameters:
spread- the new value.
-