summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-25 19:33:18 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-09-25 19:33:18 +0200
commitc2e545f91080d30d5f470e915da1d461dd1c4e7d (patch)
tree7345f8873af65eac1b913113f7a25e8cd58b0359 /src/engine
parentd5bd1ccfb8369e368ed5efb76f4e45feecef1761 (diff)
engine/enginemaster: Use CSAMPLE_GAIN for some values
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/enginemaster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/enginemaster.cpp b/src/engine/enginemaster.cpp
index e376adff73..e86457b2eb 100644
--- a/src/engine/enginemaster.cpp
+++ b/src/engine/enginemaster.cpp
@@ -412,7 +412,7 @@ void EngineMaster::process(const int iBufferSize) {
CSAMPLE pflMixGainInHeadphones = 1;
CSAMPLE masterMixGainInHeadphones = 0;
if (masterEnabled) {
- const auto cf_val = static_cast<CSAMPLE>(m_pHeadMix->get());
+ const auto cf_val = static_cast<CSAMPLE_GAIN>(m_pHeadMix->get());
pflMixGainInHeadphones = 0.5f * (-cf_val + 1.0f);
masterMixGainInHeadphones = 0.5f * (cf_val + 1.0f);
// qDebug() << "head val " << cf_val << ", head " << chead_gain
@@ -710,7 +710,7 @@ void EngineMaster::process(const int iBufferSize) {
// Balance values
CSAMPLE balright = 1.;
CSAMPLE balleft = 1.;
- const auto bal = static_cast<CSAMPLE>(m_pBalance->get());
+ const auto bal = static_cast<CSAMPLE_GAIN>(m_pBalance->get());
if (bal > 0.) {
balleft -= bal;
} else if (bal < 0.) {