From 12fd3206b492071177a743b9314b37be661501aa Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 16 Mar 2009 15:34:48 +0100 Subject: [PATCH] Sf2Player: truncated LOG440 constant Having LOG440 as double with a mantissa of 51 digits doesn't help anything. Truncated to float with 9 digits. --- plugins/sf2_player/sf2_player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index 02483ee2f..147b56079 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -2,6 +2,7 @@ * sf2_player.cpp - a soundfont2 player using fluidSynth * * Copyright (c) 2008 Paul Giblock + * Copyright (c) 2009 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -569,7 +570,7 @@ void sf2Instrument::updateSampleRate( void ) void sf2Instrument::playNote( notePlayHandle * _n, sampleFrame * ) { - const double LOG440 = 2.643452676486187424842455584439449012279510498046875f; + const float LOG440 = 2.643452676f; const f_cnt_t tfp = _n->totalFramesPlayed();