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/modulator.cpp | |
parent | 028e7eff52a4d0b7b7c023832d2792bb56fef0d1 (diff) |
Rename some struct members for clarity
Diffstat (limited to 'al/effects/modulator.cpp')
-rw-r--r-- | al/effects/modulator.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/al/effects/modulator.cpp b/al/effects/modulator.cpp index f3e43c52..8b6b1045 100644 --- a/al/effects/modulator.cpp +++ b/al/effects/modulator.cpp @@ -206,12 +206,13 @@ template<> template<> bool ModulatorCommitter::commit(const EaxEffectProps &props) { - const auto orig = props_; - props_ = props; + const auto orig = mEaxProps; + mEaxProps = props; - if(orig.mType == props_.mType && props_.mModulator.flFrequency == props.mModulator.flFrequency - && props_.mModulator.flHighPassCutOff == props.mModulator.flHighPassCutOff - && props_.mModulator.ulWaveform == props.mModulator.ulWaveform) + if(orig.mType == mEaxProps.mType + && mEaxProps.mModulator.flFrequency == props.mModulator.flFrequency + && mEaxProps.mModulator.flHighPassCutOff == props.mModulator.flHighPassCutOff + && mEaxProps.mModulator.ulWaveform == props.mModulator.ulWaveform) return false; auto get_waveform = [](unsigned long form) @@ -225,9 +226,9 @@ bool ModulatorCommitter::commit(const EaxEffectProps &props) return ModulatorWaveform::Sinusoid; }; - al_effect_props_.Modulator.Frequency = props_.mModulator.flFrequency; - al_effect_props_.Modulator.HighPassCutoff = props_.mModulator.flHighPassCutOff; - al_effect_props_.Modulator.Waveform = get_waveform(props_.mModulator.ulWaveform); + mAlProps.Modulator.Frequency = mEaxProps.mModulator.flFrequency; + mAlProps.Modulator.HighPassCutoff = mEaxProps.mModulator.flHighPassCutOff; + mAlProps.Modulator.Waveform = get_waveform(mEaxProps.mModulator.ulWaveform); return true; } |