Sf2Player: truncated LOG440 constant

Having LOG440 as double with a mantissa of 51 digits doesn't help anything.
Truncated to float with 9 digits.
(cherry picked from commit 12fd3206b4)
This commit is contained in:
Tobias Doerffel
2009-03-16 15:34:48 +01:00
parent ec07aef5ac
commit b46e711205

View File

@@ -2,6 +2,7 @@
* sf2_player.cpp - a soundfont2 player using fluidSynth
*
* Copyright (c) 2008 Paul Giblock <drfaygo/at/gmail/dot/com>
* Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -556,7 +557,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();