diff options
author | kcat <[email protected]> | 2019-06-30 16:39:36 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2019-06-30 16:39:36 -0700 |
commit | 15ac839054dd63dd0e169121a903c205666f9c7a (patch) | |
tree | ed55d8f761839445882a26df01f1d629419100bb /Alc | |
parent | ada86d2fcf0731fb328c04be9166de659377de59 (diff) | |
parent | 541a9383a734d528f4461af953efe9652203af00 (diff) |
Merge pull request #305 from Lopuska/patch-1
avoid extra local member declaration
Diffstat (limited to 'Alc')
-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); |