From ad5785611bfb6f71c7dd86d7d52e620cd5dbe208 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 27 Sep 2020 19:31:23 +0100 Subject: [PATCH] Change a float literal to double --- src/Backends/Audio/SoftwareMixer/Mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/Audio/SoftwareMixer/Mixer.cpp b/src/Backends/Audio/SoftwareMixer/Mixer.cpp index c059012d..47ae1cf1 100644 --- a/src/Backends/Audio/SoftwareMixer/Mixer.cpp +++ b/src/Backends/Audio/SoftwareMixer/Mixer.cpp @@ -38,7 +38,7 @@ static unsigned short MillibelToScale(long volume) { // Volume is in hundredths of a decibel, from 0 to -10000 volume = CLAMP(volume, -10000, 0); - return (unsigned short)(pow(10.0, volume / 2000.0) * 256.0f); + return (unsigned short)(pow(10.0, volume / 2000.0) * 256.0); } void Mixer_Init(unsigned long frequency)