diff options
author | Chris Robinson <[email protected]> | 2010-11-26 01:21:46 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-26 01:21:46 -0800 |
commit | 1cb29ece08cc6b43bb4b93e71d7139fc1cf8c919 (patch) | |
tree | 8bae1eddff34eaee4afb4757abe46df4948bc22c /Alc/ALu.c | |
parent | de8b7fbc5fa76327bba59a620fa2c6d946d226db (diff) |
Make a FRACTIONONE macro, and use it
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |