aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-10-09 23:54:31 -0700
committerChris Robinson <[email protected]>2008-10-09 23:54:31 -0700
commit74a58c0d095417b7dc1192eb608b718f212ab27d (patch)
tree8acdfa5e6ba501ad552aef536c0fe12622e876f6 /Alc
parentbfa110778130bfdeacc79989d2d57adf170ef586 (diff)
Clamp source position to the buffer size when it stops
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index f49b7807..b8ce5087 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -911,6 +911,8 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
BufferListItem->bufferstate = PROCESSED;
BufferListItem = BufferListItem->next;
}
+ ALSource->position = DataSize;
+ ALSource->position_fraction = 0;
}
else
{