Change a double type to a float
This commit is contained in:
parent
da62f50528
commit
a9b6b284c0
@ -779,7 +779,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
|
|||||||
DirGain = aluSqrt(Position[0]*Position[0] + Position[2]*Position[2]);
|
DirGain = aluSqrt(Position[0]*Position[0] + Position[2]*Position[2]);
|
||||||
// elevation adjustment for directional gain. this sucks, but
|
// elevation adjustment for directional gain. this sucks, but
|
||||||
// has low complexity
|
// has low complexity
|
||||||
AmbientGain = aluSqrt(1.0/Device->NumChan);
|
AmbientGain = aluSqrt(1.0f/Device->NumChan);
|
||||||
for(i = 0;i < MAXCHANNELS;i++)
|
for(i = 0;i < MAXCHANNELS;i++)
|
||||||
{
|
{
|
||||||
ALuint i2;
|
ALuint i2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user