diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-09-25 02:21:49 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-09-25 02:21:49 +0200 |
commit | 2965e3ae64b9ae99eb78b9e91355b6636859d19e (patch) | |
tree | fa72a6d3fcd9df7075ded010c4ec3424a7bc3f64 | |
parent | f751f9f816e5f0401984e46184c280d86c267df8 (diff) |
engine/filters/enginefilterpansingle: Fix formatting
-rw-r--r-- | src/engine/filters/enginefilterpansingle.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/engine/filters/enginefilterpansingle.h b/src/engine/filters/enginefilterpansingle.h index 14b3f38e1f..9a28298a98 100644 --- a/src/engine/filters/enginefilterpansingle.h +++ b/src/engine/filters/enginefilterpansingle.h @@ -58,23 +58,17 @@ class EngineFilterPanSingle { // applying the delay on left channel with linear interpolation between each sample pOutput[0] = static_cast<CSAMPLE>( - m_buf[(static_cast<int>(floor(delayLeftSourceFrame)) % SIZE) * - 2] * + m_buf[(static_cast<int>(floor(delayLeftSourceFrame)) % SIZE) * 2] * (1 - timeBetweenFullSamplesLeft)); pOutput[0] += static_cast<CSAMPLE>( - m_buf[(static_cast<int>(ceil(delayLeftSourceFrame)) % SIZE) * - 2] * + m_buf[(static_cast<int>(ceil(delayLeftSourceFrame)) % SIZE) * 2] * timeBetweenFullSamplesLeft); // then on right channel pOutput[1] = static_cast<CSAMPLE>( - m_buf[(static_cast<int>(floor(delayRightSourceFrame)) % SIZE) * - 2 + - 1] * + m_buf[(static_cast<int>(floor(delayRightSourceFrame)) % SIZE) * 2 + 1] * (1 - timeBetweenFullSamplesRight)); pOutput[1] += static_cast<CSAMPLE>( - m_buf[(static_cast<int>(ceil(delayRightSourceFrame)) % SIZE) * - 2 + - 1] * + m_buf[(static_cast<int>(ceil(delayRightSourceFrame)) % SIZE) * 2 + 1] * timeBetweenFullSamplesRight); m_doStart = false; |