diff options
author | Chris Robinson <[email protected]> | 2008-10-09 23:54:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-10-09 23:54:31 -0700 |
commit | 74a58c0d095417b7dc1192eb608b718f212ab27d (patch) | |
tree | 8acdfa5e6ba501ad552aef536c0fe12622e876f6 /Alc | |
parent | bfa110778130bfdeacc79989d2d57adf170ef586 (diff) |
Clamp source position to the buffer size when it stops
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |