From d8048e136f48eb89795857da917167eaa7dcbe06 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 9 Feb 2011 11:19:33 -0800 Subject: BufferFreq doesn't need to be a float --- OpenAL32/alSource.c | 4 ++-- 1 file 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); -- cgit v1.2.3