aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-26 01:21:46 -0800
committerChris Robinson <[email protected]>2010-11-26 01:21:46 -0800
commit1cb29ece08cc6b43bb4b93e71d7139fc1cf8c919 (patch)
tree8bae1eddff34eaee4afb4757abe46df4948bc22c /Alc/ALu.c
parentde8b7fbc5fa76327bba59a620fa2c6d946d226db (diff)
Make a FRACTIONONE macro, and use it
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index b7471132..9619f595 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -124,10 +124,10 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
if(Pitch > (float)MAX_PITCH)
ALSource->Params.Step = MAX_PITCH<<FRACTIONBITS;
else if(!(Pitch > 0.0f))
- ALSource->Params.Step = 1<<FRACTIONBITS;
+ ALSource->Params.Step = FRACTIONONE;
else
{
- ALSource->Params.Step = Pitch*(1<<FRACTIONBITS);
+ ALSource->Params.Step = Pitch*FRACTIONONE;
if(ALSource->Params.Step == 0)
ALSource->Params.Step = 1;
}
@@ -596,10 +596,10 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
if(Pitch > (float)MAX_PITCH)
ALSource->Params.Step = MAX_PITCH<<FRACTIONBITS;
else if(!(Pitch > 0.0f))
- ALSource->Params.Step = 1<<FRACTIONBITS;
+ ALSource->Params.Step = FRACTIONONE;
else
{
- ALSource->Params.Step = Pitch*(1<<FRACTIONBITS);
+ ALSource->Params.Step = Pitch*FRACTIONONE;
if(ALSource->Params.Step == 0)
ALSource->Params.Step = 1;
}