diff options
author | Chris Robinson <[email protected]> | 2010-12-09 19:47:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-12-09 19:47:08 -0800 |
commit | 023658605ed6f64871318c5143d48c8838be70d1 (patch) | |
tree | d3fc8c4a215ce71cb220a6e614cb27587e8ae0c4 | |
parent | 031111014b821a6d3b908a06330f4ab829efacf5 (diff) |
Constify some variables
-rw-r--r-- | OpenAL32/alSource.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 0e066a22..9132040f 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -1797,14 +1797,14 @@ static ALvoid InitSourceParams(ALsource *Source) */ static ALvoid GetSourceOffset(ALsource *Source, ALenum name, ALdouble *offset, ALdouble updateLen) { - ALbufferlistitem *BufferList; - ALbuffer *Buffer = NULL; - ALfloat BufferFreq; - ALint Channels, Bytes; - ALuint readPos, writePos; + const ALbufferlistitem *BufferList; + const ALbuffer *Buffer = NULL; enum UserFmtType OriginalType; - ALuint TotalBufferDataSize; - ALuint i; + ALfloat BufferFreq; + ALint Channels, Bytes; + ALuint readPos, writePos; + ALuint TotalBufferDataSize; + ALuint i; // Find the first non-NULL Buffer in the Queue BufferList = Source->queue; @@ -1914,11 +1914,11 @@ static ALvoid GetSourceOffset(ALsource *Source, ALenum name, ALdouble *offset, A */ static ALboolean ApplyOffset(ALsource *Source) { - ALbufferlistitem *BufferList; - ALbuffer *Buffer; - ALint lBufferSize, lTotalBufferSize; - ALint BuffersPlayed; - ALint lByteOffset; + const ALbufferlistitem *BufferList; + const ALbuffer *Buffer; + ALint lBufferSize, lTotalBufferSize; + ALint BuffersPlayed; + ALint lByteOffset; // Get true byte offset lByteOffset = GetByteOffset(Source); @@ -1975,9 +1975,9 @@ static ALboolean ApplyOffset(ALsource *Source) */ static ALint GetByteOffset(ALsource *Source) { - ALbuffer *Buffer = NULL; - ALbufferlistitem *BufferList; - ALint ByteOffset = -1; + const ALbuffer *Buffer = NULL; + const ALbufferlistitem *BufferList; + ALint ByteOffset = -1; // Find the first non-NULL Buffer in the Queue BufferList = Source->queue; |