Change a float literal to double

This commit is contained in:
Clownacy 2020-09-27 19:31:23 +01:00
parent 35bf490f0d
commit ad5785611b

View file

@ -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)