summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-25 16:00:45 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-25 16:07:22 +0200
commitc974080ef70cdd8f7d3b07846df03c96b782efa2 (patch)
tree8026b6b37c1a8bb88462e592ee85de59f8a92919
parent1ae38e95f02820818228c11b1858edb9da17bebe (diff)
engine/filters/enginefilterpansingle: Make lossy typecasts explicit
-rw-r--r--src/engine/filters/enginefilterpansingle.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/engine/filters/enginefilterpansingle.h b/src/engine/filters/enginefilterpansingle.h
index 3a91f1cf78..383377cdf0 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);
+ CSAMPLE_GAIN timeBetweenFullSamplesLeft =
+ static_cast<CSAMPLE_GAIN>(fmod(delayLeftSourceFrame, 1));
+ CSAMPLE_GAIN timeBetweenFullSamplesRight =
+ static_cast<CSAMPLE_GAIN>(fmod(delayRightSourceFrame, 1));
// applying the delay on left channel with linear interpolation between each sample
pOutput[0] =