diff options
author | Chris Robinson <[email protected]> | 2018-03-11 22:40:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-11 22:40:08 -0700 |
commit | 8eb7a94e1c07a8b3d74f84886c493d1a7dada7de (patch) | |
tree | fa0d499201c0486b2b4da7c20abbf02443f98a98 /OpenAL32 | |
parent | 6b35a4534f1047c8e6ec630cbae89ea3e25e5d74 (diff) |
Apply a distance decay on the source send for the reverb's DecayLFRatio
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alAuxEffectSlot.h | 1 | ||||
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index 36f09782..61c72153 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -127,6 +127,7 @@ typedef struct ALeffectslot { ALfloat RoomRolloff; /* Added to the source's room rolloff, not multiplied. */ ALfloat DecayTime; + ALfloat DecayLFRatio; ALfloat DecayHFRatio; ALboolean DecayHFLimit; ALfloat AirAbsorptionGainHF; diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index d4e6bf75..301244a0 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -686,6 +686,7 @@ ALenum InitEffectSlot(ALeffectslot *slot) slot->Params.EffectState = slot->Effect.State; slot->Params.RoomRolloff = 0.0f; slot->Params.DecayTime = 0.0f; + slot->Params.DecayLFRatio = 0.0f; slot->Params.DecayHFRatio = 0.0f; slot->Params.DecayHFLimit = AL_FALSE; slot->Params.AirAbsorptionGainHF = 1.0f; |