diff options
-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 441f8275..4ed1ee6b 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -2136,8 +2136,8 @@ static ALint GetByteOffset(ALsource *pSource) case AL_SEC_OFFSET: // Note - lOffset is internally stored as Milliseconds - lByteOffset = (ALint)(pSource->lOffset * lChannels * lBytes * flBufferFreq / 1000.0f); - lByteOffset -= (lByteOffset % (lChannels * lBytes)); + lByteOffset = (ALint)(pSource->lOffset / 1000.0f * flBufferFreq); + lByteOffset *= lChannels * lBytes; break; } |