aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-10 07:25:05 -0700
committerChris Robinson <[email protected]>2014-05-10 07:25:05 -0700
commit67b4bd1031ba6b9def829fafe41a3b327a60aca6 (patch)
tree314ba1da9b391309305da861b537b6a8207577bc
parent9642bf637d32c5cff191e633ea4df61ac42a511b (diff)
Add a couple consts
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index d2746d68..66258340 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -277,7 +277,7 @@ ALvoid CalcNonAttnSourceParams(ALactivesource *src, const ALCcontext *ALContext)
};
ALCdevice *Device = ALContext->Device;
- ALsource *ALSource = src->Source;
+ const ALsource *ALSource = src->Source;
ALfloat SourceVolume,ListenerGain,MinVolume,MaxVolume;
ALbufferlistitem *BufferListItem;
enum FmtChannels Channels;
@@ -600,7 +600,7 @@ ALvoid CalcNonAttnSourceParams(ALactivesource *src, const ALCcontext *ALContext)
ALvoid CalcSourceParams(ALactivesource *src, const ALCcontext *ALContext)
{
ALCdevice *Device = ALContext->Device;
- ALsource *ALSource = src->Source;
+ const ALsource *ALSource = src->Source;
ALfloat Velocity[3],Direction[3],Position[3],SourceToListener[3];
ALfloat InnerAngle,OuterAngle,Angle,Distance,ClampedDist;
ALfloat MinVolume,MaxVolume,MinDist,MaxDist,Rolloff;