aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-02-09 11:19:33 -0800
committerChris Robinson <[email protected]>2011-02-09 11:19:33 -0800
commitd8048e136f48eb89795857da917167eaa7dcbe06 (patch)
treeac076ab997d6246f1f0fdb83d22b540d5fc7fa85
parentfd64fea27925030e8cc7243f0541ff475b37440a (diff)
BufferFreq doesn't need to be a float
-rw-r--r--OpenAL32/alSource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 9132040f..ed69af34 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1800,7 +1800,7 @@ static ALvoid GetSourceOffset(ALsource *Source, ALenum name, ALdouble *offset, A
const ALbufferlistitem *BufferList;
const ALbuffer *Buffer = NULL;
enum UserFmtType OriginalType;
- ALfloat BufferFreq;
+ ALsizei BufferFreq;
ALint Channels, Bytes;
ALuint readPos, writePos;
ALuint TotalBufferDataSize;
@@ -1826,7 +1826,7 @@ static ALvoid GetSourceOffset(ALsource *Source, ALenum name, ALdouble *offset, A
}
// Get Current Buffer Size and frequency (in milliseconds)
- BufferFreq = (ALfloat)Buffer->Frequency;
+ BufferFreq = Buffer->Frequency;
OriginalType = Buffer->OriginalType;
Channels = ChannelsFromFmt(Buffer->FmtChannels);
Bytes = BytesFromFmt(Buffer->FmtType);