diff options
author | Chris Robinson <[email protected]> | 2019-02-21 03:07:36 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-21 03:07:36 -0800 |
commit | d95e144c4836311eb6cafa607f609959f48dddd3 (patch) | |
tree | 50124d35eab2aef363fb8a1fc4021df81686773b /Alc | |
parent | 4b4041319d6e3b32529b901641166052e37d56d4 (diff) |
Remove some now-unnecessary ReverbState fields
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/effects/reverb.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/Alc/effects/reverb.cpp b/Alc/effects/reverb.cpp index fe673421..e675ee6b 100644 --- a/Alc/effects/reverb.cpp +++ b/Alc/effects/reverb.cpp @@ -297,9 +297,6 @@ struct ReverbState final : public EffectState { ALfloat LFReference{AL_EAXREVERB_DEFAULT_LFREFERENCE}; } mParams; - ALsizei mNumInputs{0}; /* 3 or 4 */ - ALfloat mInputConv[NUM_LINES][4/*NumInputs*/]; - /* Master effect filters */ struct { BiquadFilter Lp; @@ -470,28 +467,6 @@ ALboolean ReverbState::deviceUpdate(const ALCdevice *Device) EARLY_TAP_LENGTHS[NUM_LINES-1]*multiplier) * frequency); - mNumInputs = 4; - if(mNumInputs == 3) - { - for(ALsizei i{0};i < NUM_LINES;++i) - { - mInputConv[i][0] = B2A[i][0]; - mInputConv[i][1] = B2A[i][1]; - mInputConv[i][2] = B2A[i][3]; - mInputConv[i][3] = 0.0f; - } - } - else - { - for(ALsizei i{0};i < NUM_LINES;++i) - { - mInputConv[i][0] = B2A[i][0]; - mInputConv[i][1] = B2A[i][1]; - mInputConv[i][2] = B2A[i][2]; - mInputConv[i][3] = B2A[i][3]; - } - } - /* Clear filters and gain coefficients since the delay lines were all just * cleared (if not reallocated). */ @@ -1346,7 +1321,7 @@ void ReverbState::process(ALsizei samplesToDo, const ALfloat (*RESTRICT samplesI for(ALsizei c{0};c < NUM_LINES;c++) { std::fill(std::begin(afmt[c]), std::end(afmt[c]), 0.0f); - MixRowSamples(afmt[c], mInputConv[c], samplesIn, numInput, base, todo); + MixRowSamples(afmt[c], B2A[c].data(), samplesIn, numInput, base, todo); } /* Process the samples for reverb. */ |