Class ReverbEffect


public class ReverbEffect extends OALEffect
Reverb effect for sound and stuff.
Author:
Matthew Tropiano
  • Field Details

    • density

      protected float density
      Reverb density factor.
    • diffusion

      protected float diffusion
      Reverb diffusion factor.
    • gain

      protected float gain
      Reverb gain.
    • gainHF

      protected float gainHF
      Reverb high-frequency gain.
    • decayTime

      protected float decayTime
      Reverb decay time in seconds.
    • decayHFRatio

      protected float decayHFRatio
      Reverb high-frequency ratio.
    • reflectionGain

      protected float reflectionGain
      Reverb reflection gain.
    • reflectionDelay

      protected float reflectionDelay
      Reverb reflection delay in seconds.
    • lateGain

      protected float lateGain
      Late reverb gain.
    • lateDelay

      protected float lateDelay
      Late reverb delay.
    • airAbsorptionGainHF

      protected float airAbsorptionGainHF
      Reverb high-frequency air absorption gain.
    • roomRolloffFactor

      protected float roomRolloffFactor
      Reverb room rolloff factor.
    • hfLimit

      protected boolean hfLimit
      Reverb decay high-frequency limit?
  • Constructor Details

    • ReverbEffect

      public ReverbEffect(OALContext context)
  • 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.