[SCM] calf/master: + Monosynth: fix type bug that made it impossible to compile with g++ 4.2
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:39:37 UTC 2013
The following commit has been merged in the master branch:
commit f2cd6987deba9f82a9824529bad6de2ab89e0bc6
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Mon Oct 12 21:57:06 2009 +0100
+ Monosynth: fix type bug that made it impossible to compile with g++ 4.2
diff --git a/src/monosynth.cpp b/src/monosynth.cpp
index 3316025..5fdb993 100644
--- a/src/monosynth.cpp
+++ b/src/monosynth.cpp
@@ -627,7 +627,7 @@ void monosynth_audio_module::set_frequency()
{
float detune_scaled = (detune - 1); // * log(freq / 440);
if (*params[par_scaledetune] > 0)
- detune_scaled *= pow(20.0 / freq, *params[par_scaledetune]);
+ detune_scaled *= pow(20.0 / freq, (double)*params[par_scaledetune]);
float p1 = 1, p2 = 1;
if (moddest[moddest_o1detune] != 0)
p1 = pow(2.0, moddest[moddest_o1detune] * (1.0 / 1200.0));
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list