diff options
Diffstat (limited to 'src/engine/filters/enginefilterpansingle.h')
-rw-r--r-- | src/engine/filters/enginefilterpansingle.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/engine/filters/enginefilterpansingle.h b/src/engine/filters/enginefilterpansingle.h index 3a91f1cf78..df0a608148 100644 --- a/src/engine/filters/enginefilterpansingle.h +++ b/src/engine/filters/enginefilterpansingle.h @@ -53,8 +53,10 @@ class EngineFilterPanSingle { m_delayFrame = (m_delayFrame + 1) % SIZE; // prepare coefficients for linear interpolation using a linear stretching - CSAMPLE_GAIN timeBetweenFullSamplesLeft = fmod(delayLeftSourceFrame, 1); - CSAMPLE_GAIN timeBetweenFullSamplesRight = fmod(delayRightSourceFrame, 1); + const auto timeBetweenFullSamplesLeft = + static_cast<CSAMPLE_GAIN>(fmod(delayLeftSourceFrame, 1)); + const auto timeBetweenFullSamplesRight = + static_cast<CSAMPLE_GAIN>(fmod(delayRightSourceFrame, 1)); // applying the delay on left channel with linear interpolation between each sample pOutput[0] = |