diff options
author | Chris Robinson <[email protected]> | 2020-12-26 09:21:30 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-26 09:21:30 -0800 |
commit | 54719de13235f6ea216e8d200661027c047bd283 (patch) | |
tree | 469e890debbe901619a4cbbcfc6b682a4b686b80 /alc/alu.cpp | |
parent | 8850a3f730dee76c57d5500b0c418078c91096c7 (diff) |
Avoid AL enums for the EffectSlot type
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index f3a950f6..ae181af2 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -433,7 +433,7 @@ bool CalcEffectSlotParams(EffectSlot *slot, EffectSlot **sorted_slots, ALCcontex slot->Target = props->Target; slot->EffectType = props->Type; slot->mEffectProps = props->Props; - if(props->Type == AL_EFFECT_REVERB || props->Type == AL_EFFECT_EAXREVERB) + if(props->Type == EffectSlotType::Reverb || props->Type == EffectSlotType::EAXReverb) { slot->RoomRolloff = props->Props.Reverb.RoomRolloffFactor; slot->DecayTime = props->Props.Reverb.DecayTime; @@ -1205,7 +1205,7 @@ void CalcNonAttnSourceParams(Voice *voice, const VoiceProps *props, const ALCcon for(uint i{0};i < Device->NumAuxSends;i++) { SendSlots[i] = props->Send[i].Slot; - if(!SendSlots[i] || SendSlots[i]->EffectType == AL_EFFECT_NULL) + if(!SendSlots[i] || SendSlots[i]->EffectType == EffectSlotType::None) { SendSlots[i] = nullptr; voice->mSend[i].Buffer = {}; @@ -1255,7 +1255,7 @@ void CalcAttnSourceParams(Voice *voice, const VoiceProps *props, const ALCcontex for(uint i{0};i < NumSends;i++) { SendSlots[i] = props->Send[i].Slot; - if(!SendSlots[i] || SendSlots[i]->EffectType == AL_EFFECT_NULL) + if(!SendSlots[i] || SendSlots[i]->EffectType == EffectSlotType::None) { SendSlots[i] = nullptr; RoomRolloff[i] = 0.0f; |