diff options
author | Chris Robinson <[email protected]> | 2011-02-09 11:19:33 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-02-09 11:19:33 -0800 |
commit | d8048e136f48eb89795857da917167eaa7dcbe06 (patch) | |
tree | ac076ab997d6246f1f0fdb83d22b540d5fc7fa85 /OpenAL32 | |
parent | fd64fea27925030e8cc7243f0541ff475b37440a (diff) |
BufferFreq doesn't need to be a float
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alSource.c | 4 |
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); |