Change a float literal to double
This commit is contained in:
parent
35bf490f0d
commit
ad5785611b
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ static unsigned short MillibelToScale(long volume)
|
||||||
{
|
{
|
||||||
// Volume is in hundredths of a decibel, from 0 to -10000
|
// Volume is in hundredths of a decibel, from 0 to -10000
|
||||||
volume = CLAMP(volume, -10000, 0);
|
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)
|
void Mixer_Init(unsigned long frequency)
|
||||||
|
|
Loading…
Add table
Reference in a new issue