summaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32')
-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);