mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
headpos needs resetting too at sfx end
This commit is contained in:
parent
fb1a5f67f2
commit
28cc2e24ef
1 changed files with 2 additions and 1 deletions
|
@ -185,9 +185,10 @@ SND_StreamAdvance (sfxbuffer_t *buffer, unsigned int count)
|
|||
if (buffer->pos >= sfx->length) {
|
||||
if (sfx->loopstart == (unsigned int)-1) {
|
||||
// reset the buffer and fill it incase it's needed again
|
||||
buffer->pos = 0;
|
||||
headpos = buffer->pos = 0;
|
||||
buffer->head = buffer->tail = 0;
|
||||
count = 0;
|
||||
stream->seek (stream->file, buffer->pos * stepscale, info);
|
||||
} else {
|
||||
buffer->pos -= sfx->length - sfx->loopstart;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue