diff options
author | Chris Robinson <[email protected]> | 2011-07-16 03:15:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-16 03:15:28 -0700 |
commit | 292ea0607ddd3df4edced130cc041ba2de13cf27 (patch) | |
tree | a7aed5f78e3ceb147bc99c508a14b62d20ecc7db | |
parent | 3bd7256dc826f21b30e90c9d761e8d5639700afe (diff) |
Request a slot update when the gain changes
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 797c8237..2d8cf06f 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -264,7 +264,10 @@ AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSlotf(ALuint effectslot, ALenum param { case AL_EFFECTSLOT_GAIN: if(flValue >= 0.0f && flValue <= 1.0f) + { EffectSlot->Gain = flValue; + EffectSlot->NeedsUpdate = AL_TRUE; + } else alSetError(Context, AL_INVALID_VALUE); break; |