diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-05-12 09:04:52 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-05-12 09:04:52 (GMT) |
commit | bf3544fb5cb04d0271fb92bdb683e9b4a2a17816 (patch) | |
tree | 92ae1cd39181b9fd36440c2dd59942777e1a5073 /demos/spectrum | |
parent | 162bc6d94fadbfc9216d45eede4dc6d4fc2d5eef (diff) | |
download | Qt-bf3544fb5cb04d0271fb92bdb683e9b4a2a17816.zip Qt-bf3544fb5cb04d0271fb92bdb683e9b4a2a17816.tar.gz Qt-bf3544fb5cb04d0271fb92bdb683e9b4a2a17816.tar.bz2 |
Compilation fix for Metrowerks compiler
Compiler was failing to disambiguate the following overloads:
pow(double, double)
pow(float, float)
Reviewed-by: mread
Diffstat (limited to 'demos/spectrum')
-rw-r--r-- | demos/spectrum/app/levelmeter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/spectrum/app/levelmeter.cpp b/demos/spectrum/app/levelmeter.cpp index eb37684..39e43c9 100644 --- a/demos/spectrum/app/levelmeter.cpp +++ b/demos/spectrum/app/levelmeter.cpp @@ -87,7 +87,7 @@ void LevelMeter::reset() void LevelMeter::levelChanged(qreal rmsLevel, qreal peakLevel, int numSamples) { // Smooth the RMS signal - const qreal smooth = pow(0.9, static_cast<qreal>(numSamples) / 256); // TODO: remove this magic number + const qreal smooth = pow(qreal(0.9), static_cast<qreal>(numSamples) / 256); // TODO: remove this magic number m_rmsLevel = (m_rmsLevel * smooth) + (rmsLevel * (1.0 - smooth)); if (peakLevel > m_decayedPeakLevel) { |