fix looping

This commit is contained in:
Bill Currie 2003-04-12 00:03:56 +00:00
parent 4eaeb91cc4
commit 23278d0706
2 changed files with 5 additions and 0 deletions

View file

@ -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);

View file

@ -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;