mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
fix looping
This commit is contained in:
parent
4eaeb91cc4
commit
23278d0706
2 changed files with 5 additions and 0 deletions
|
@ -752,6 +752,7 @@ SND_SoundList (void)
|
|||
continue;
|
||||
}
|
||||
total += sfx->length;
|
||||
Sys_Printf ("%6d %6d %s\n", sfx->loopstart, sfx->length, sfx->name);
|
||||
|
||||
if (load)
|
||||
sfx->release (sfx);
|
||||
|
|
|
@ -203,6 +203,8 @@ SND_ResampleMono (sfxbuffer_t *sc, byte *data, int length)
|
|||
sc->sfx->length = outcount;
|
||||
if (info->loopstart != -1)
|
||||
sc->sfx->loopstart = info->loopstart / stepscale;
|
||||
else
|
||||
sc->sfx->loopstart = -1;
|
||||
|
||||
if (snd_loadas8bit->int_val) {
|
||||
outwidth = 1;
|
||||
|
@ -314,6 +316,8 @@ SND_ResampleStereo (sfxbuffer_t *sc, byte *data, int length)
|
|||
sc->sfx->length = outcount;
|
||||
if (info->loopstart != -1)
|
||||
sc->sfx->loopstart = info->loopstart / stepscale;
|
||||
else
|
||||
sc->sfx->loopstart = -1;
|
||||
|
||||
if (snd_loadas8bit->int_val) {
|
||||
outwidth = 1;
|
||||
|
|
Loading…
Reference in a new issue