diff options
-rw-r--r-- | sound/fmopl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/fmopl.cpp b/sound/fmopl.cpp index 293b39a14b..69ccb7b055 100644 --- a/sound/fmopl.cpp +++ b/sound/fmopl.cpp @@ -612,7 +612,7 @@ static int OPLOpenTable(void) { } /* make total level table */ for (t = 0; t < EG_ENT - 1 ; t++){ - rate = ((1 << TL_BITS) - 1) / pow(10, EG_STEP * t / 20); /* dB -> voltage */ + rate = ((1 << TL_BITS) - 1) / pow(10.0, EG_STEP * t / 20); /* dB -> voltage */ TL_TABLE[ t] = (int)rate; TL_TABLE[TL_MAX + t] = -TL_TABLE[t]; } |