aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 066e7f72..d470f027 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1937,8 +1937,7 @@ static ALboolean ApplyOffset(ALsource *Source)
// SW Mixer Positions are in Samples
Source->position = (lByteOffset - lTotalBufferSize) /
- aluBytesFromFormat(Buffer->format) /
- aluChannelsFromFormat(Buffer->format);
+ aluFrameSizeFromFormat(Buffer->format);
return AL_TRUE;
}