Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/sanear.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Marsev <alex.marsev@gmail.com>2014-12-10 04:15:29 +0300
committerAlex Marsev <alex.marsev@gmail.com>2014-12-10 04:15:29 +0300
commitb3baf5dee6dff35b277b9de86a9c7f23b4dfee90 (patch)
treedc7d5ca750eb83768a36b06dcec1b53b829133dc /src/DspBalance.cpp
parent7ab6f4678fb4a5cde911806c9bfd46d98e7337f2 (diff)
Make fp constants consistent
Diffstat (limited to 'src/DspBalance.cpp')
-rw-r--r--src/DspBalance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DspBalance.cpp b/src/DspBalance.cpp
index 109d6fe..2b543c9 100644
--- a/src/DspBalance.cpp
+++ b/src/DspBalance.cpp
@@ -21,7 +21,7 @@ namespace SaneAudioRenderer
auto data = reinterpret_cast<float*>(chunk.GetData());
float gain = abs(balance);
- for (size_t i = (balance < 0 ? 1 : 0), n = chunk.GetSampleCount(); i < n; i += 2)
+ for (size_t i = (balance < 0.0f ? 1 : 0), n = chunk.GetSampleCount(); i < n; i += 2)
data[i] *= gain;
}
}