diff options
author | Chris Robinson <[email protected]> | 2009-03-13 23:08:15 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-03-13 23:08:15 -0700 |
commit | a8a4ff8af1174a0eb89247abaf6a6873b5a709e0 (patch) | |
tree | 9978f4cf527fe2fdccd0bf5d8a3d701b19f46211 /Alc/ALu.c | |
parent | 8a857c35ee593c082bed91abcf407a0337a5db29 (diff) |
Constify some parameters
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -225,14 +225,14 @@ static __inline ALshort aluF2S(ALfloat Value) return ((ALshort)i); } -static __inline ALvoid aluCrossproduct(ALfloat *inVector1,ALfloat *inVector2,ALfloat *outVector) +static __inline ALvoid aluCrossproduct(const ALfloat *inVector1, const ALfloat *inVector2, ALfloat *outVector) { outVector[0] = inVector1[1]*inVector2[2] - inVector1[2]*inVector2[1]; outVector[1] = inVector1[2]*inVector2[0] - inVector1[0]*inVector2[2]; outVector[2] = inVector1[0]*inVector2[1] - inVector1[1]*inVector2[0]; } -static __inline ALfloat aluDotproduct(ALfloat *inVector1,ALfloat *inVector2) +static __inline ALfloat aluDotproduct(const ALfloat *inVector1, const ALfloat *inVector2) { return inVector1[0]*inVector2[0] + inVector1[1]*inVector2[1] + inVector1[2]*inVector2[2]; @@ -554,10 +554,11 @@ static __inline ALint aluCart2LUTpos(ALfloat re, ALfloat im) return pos%LUT_NUM; } -static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, - ALenum isMono, ALfloat *drysend, - ALfloat *wetsend, ALfloat *pitch, - ALfloat *drygainhf, ALfloat *wetgainhf) +static ALvoid CalcSourceParams(const ALCcontext *ALContext, + const ALsource *ALSource, ALenum isMono, + ALfloat *drysend, ALfloat *wetsend, + ALfloat *pitch, ALfloat *drygainhf, + ALfloat *wetgainhf) { ALfloat InnerAngle,OuterAngle,Angle,Distance,DryMix,WetMix=0.0f; ALfloat Direction[3],Position[3],SourceToListener[3]; |