diff options
author | Chris Robinson <[email protected]> | 2023-03-11 17:03:51 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-03-11 17:03:51 -0800 |
commit | 86d4a77e62857205586caf95580980f29e06eb9f (patch) | |
tree | 108359e7f948fdba9a0bd825f6c67eabccb1fe06 /al/effects/distortion.cpp | |
parent | 028e7eff52a4d0b7b7c023832d2792bb56fef0d1 (diff) |
Rename some struct members for clarity
Diffstat (limited to 'al/effects/distortion.cpp')
-rw-r--r-- | al/effects/distortion.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/al/effects/distortion.cpp b/al/effects/distortion.cpp index a0f4d924..6125c2a4 100644 --- a/al/effects/distortion.cpp +++ b/al/effects/distortion.cpp @@ -207,21 +207,21 @@ template<> template<> bool DistortionCommitter::commit(const EaxEffectProps &props) { - const auto orig = props_; - props_ = props; - - if(orig.mType == props_.mType && props_.mDistortion.flEdge == props.mDistortion.flEdge - && props_.mDistortion.lGain == props.mDistortion.lGain - && props_.mDistortion.flLowPassCutOff == props.mDistortion.flLowPassCutOff - && props_.mDistortion.flEQCenter == props.mDistortion.flEQCenter - && props_.mDistortion.flEQBandwidth == props.mDistortion.flEQBandwidth) + const auto orig = mEaxProps; + mEaxProps = props; + + if(orig.mType == mEaxProps.mType && mEaxProps.mDistortion.flEdge == props.mDistortion.flEdge + && mEaxProps.mDistortion.lGain == props.mDistortion.lGain + && mEaxProps.mDistortion.flLowPassCutOff == props.mDistortion.flLowPassCutOff + && mEaxProps.mDistortion.flEQCenter == props.mDistortion.flEQCenter + && mEaxProps.mDistortion.flEQBandwidth == props.mDistortion.flEQBandwidth) return false; - al_effect_props_.Distortion.Edge = props_.mDistortion.flEdge; - al_effect_props_.Distortion.Gain = level_mb_to_gain(static_cast<float>(props_.mDistortion.lGain)); - al_effect_props_.Distortion.LowpassCutoff = props_.mDistortion.flLowPassCutOff; - al_effect_props_.Distortion.EQCenter = props_.mDistortion.flEQCenter; - al_effect_props_.Distortion.EQBandwidth = props_.mDistortion.flEdge; + mAlProps.Distortion.Edge = mEaxProps.mDistortion.flEdge; + mAlProps.Distortion.Gain = level_mb_to_gain(static_cast<float>(mEaxProps.mDistortion.lGain)); + mAlProps.Distortion.LowpassCutoff = mEaxProps.mDistortion.flLowPassCutOff; + mAlProps.Distortion.EQCenter = mEaxProps.mDistortion.flEQCenter; + mAlProps.Distortion.EQBandwidth = mEaxProps.mDistortion.flEdge; return true; } |