diff options
author | Chris Robinson <[email protected]> | 2023-08-25 02:10:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-08-25 02:10:18 -0700 |
commit | 4b924e636b6e0651304b289a667d358d336d6d03 (patch) | |
tree | 0b55327958d5073175ccc1fbb07b26a93d69046e /al/auxeffectslot.h | |
parent | 84c1633f635ce870fe9556c267b1538ecbf1f0cd (diff) |
Allow querying AL_EFFECTSLOT_EFFECT
This doesn't make much sense since the effect associated with the ID may be
modified and not represent the effect being played, or was even deleted and
isn't a valid effect ID, but Generic Software allows querying it so it should
be queryable for compatibility if nothing else.
Diffstat (limited to 'al/auxeffectslot.h')
-rw-r--r-- | al/auxeffectslot.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/al/auxeffectslot.h b/al/auxeffectslot.h index 9038647c..1ad0ffc4 100644 --- a/al/auxeffectslot.h +++ b/al/auxeffectslot.h @@ -46,6 +46,7 @@ enum class SlotState : ALenum { }; struct ALeffectslot { + ALuint EffectId{}; float Gain{1.0f}; bool AuxSendAuto{true}; ALeffectslot *Target{nullptr}; @@ -74,7 +75,8 @@ struct ALeffectslot { ALeffectslot& operator=(const ALeffectslot&) = delete; ~ALeffectslot(); - ALenum initEffect(ALenum effectType, const EffectProps &effectProps, ALCcontext *context); + ALenum initEffect(ALuint effectId, ALenum effectType, const EffectProps &effectProps, + ALCcontext *context); void updateProps(ALCcontext *context); static void SetName(ALCcontext *context, ALuint id, std::string_view name); |