diff options
author | Lopuska <[email protected]> | 2019-06-30 23:17:13 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2019-06-30 23:17:13 +0200 |
commit | 541a9383a734d528f4461af953efe9652203af00 (patch) | |
tree | ed55d8f761839445882a26df01f1d629419100bb /Alc/effects/modulator.cpp | |
parent | ada86d2fcf0731fb328c04be9166de659377de59 (diff) |
avoid extra local member declaration
Diffstat (limited to 'Alc/effects/modulator.cpp')
-rw-r--r-- | Alc/effects/modulator.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/effects/modulator.cpp b/Alc/effects/modulator.cpp index 131d275b..39f1aa04 100644 --- a/Alc/effects/modulator.cpp +++ b/Alc/effects/modulator.cpp @@ -142,16 +142,14 @@ void ModulatorState::update(const ALCcontext *context, const ALeffectslot *slot, void ModulatorState::process(const ALsizei samplesToDo, const FloatBufferLine *RESTRICT samplesIn, const ALsizei numInput, const al::span<FloatBufferLine> samplesOut) { - const ALsizei step{mStep}; - for(ALsizei base{0};base < samplesToDo;) { alignas(16) ALfloat modsamples[MAX_UPDATE_SAMPLES]; ALsizei td = mini(MAX_UPDATE_SAMPLES, samplesToDo-base); ALsizei c, i; - mGetSamples(modsamples, mIndex, step, td); - mIndex += (step*td) & WAVEFORM_FRACMASK; + mGetSamples(modsamples, mIndex, mStep, td); + mIndex += (mStep*td) & WAVEFORM_FRACMASK; mIndex &= WAVEFORM_FRACMASK; ASSUME(numInput > 0); |