diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-09-25 02:18:22 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-09-25 02:18:22 +0200 |
commit | f751f9f816e5f0401984e46184c280d86c267df8 (patch) | |
tree | 5d7b2751c51e0903974303b96ac4c7ba5b4f6340 /src/engine | |
parent | 61f8d807a460ea7dc965900f38e6e262d573aa9e (diff) |
engine/filters/enginefilterdelay: Declare m_buf[] as CSAMPLE
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/filters/enginefilterdelay.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/filters/enginefilterdelay.h b/src/engine/filters/enginefilterdelay.h index 55426889ed..d267b83089 100644 --- a/src/engine/filters/enginefilterdelay.h +++ b/src/engine/filters/enginefilterdelay.h @@ -52,7 +52,7 @@ class EngineFilterDelay : public EngineObjectConstIn { m_delayPos = (m_delayPos + 1) % SIZE; // Take delayed sample from delay buffer and copy it to dest buffer: - pOutput[i] = static_cast<CSAMPLE>(m_buf[delaySourcePos]); + pOutput[i] = m_buf[delaySourcePos]; delaySourcePos = (delaySourcePos + 1) % SIZE; } } else { @@ -88,7 +88,7 @@ class EngineFilterDelay : public EngineObjectConstIn { if (i < iBufferSize / 2) { // only ramp the second half of the buffer, because we do // the same in the IIR filter to wait for settling - pOutput[i] = static_cast<CSAMPLE>(m_buf[oldDelaySourcePos]); + pOutput[i] = m_buf[oldDelaySourcePos]; } else { pOutput[i] = static_cast<CSAMPLE>(m_buf[oldDelaySourcePos] * (1.0 - cross_mix)); pOutput[i] += static_cast<CSAMPLE>(m_buf[delaySourcePos] * cross_mix); @@ -119,7 +119,7 @@ class EngineFilterDelay : public EngineObjectConstIn { int m_delaySamples; int m_oldDelaySamples; int m_delayPos; - double m_buf[SIZE]; + CSAMPLE m_buf[SIZE]; bool m_doStart; }; |