mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-01 06:50:59 +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;
|
continue;
|
||||||
}
|
}
|
||||||
total += sfx->length;
|
total += sfx->length;
|
||||||
|
Sys_Printf ("%6d %6d %s\n", sfx->loopstart, sfx->length, sfx->name);
|
||||||
|
|
||||||
if (load)
|
if (load)
|
||||||
sfx->release (sfx);
|
sfx->release (sfx);
|
||||||
|
|
|
@ -203,6 +203,8 @@ SND_ResampleMono (sfxbuffer_t *sc, byte *data, int length)
|
||||||
sc->sfx->length = outcount;
|
sc->sfx->length = outcount;
|
||||||
if (info->loopstart != -1)
|
if (info->loopstart != -1)
|
||||||
sc->sfx->loopstart = info->loopstart / stepscale;
|
sc->sfx->loopstart = info->loopstart / stepscale;
|
||||||
|
else
|
||||||
|
sc->sfx->loopstart = -1;
|
||||||
|
|
||||||
if (snd_loadas8bit->int_val) {
|
if (snd_loadas8bit->int_val) {
|
||||||
outwidth = 1;
|
outwidth = 1;
|
||||||
|
@ -314,6 +316,8 @@ SND_ResampleStereo (sfxbuffer_t *sc, byte *data, int length)
|
||||||
sc->sfx->length = outcount;
|
sc->sfx->length = outcount;
|
||||||
if (info->loopstart != -1)
|
if (info->loopstart != -1)
|
||||||
sc->sfx->loopstart = info->loopstart / stepscale;
|
sc->sfx->loopstart = info->loopstart / stepscale;
|
||||||
|
else
|
||||||
|
sc->sfx->loopstart = -1;
|
||||||
|
|
||||||
if (snd_loadas8bit->int_val) {
|
if (snd_loadas8bit->int_val) {
|
||||||
outwidth = 1;
|
outwidth = 1;
|
||||||
|
|
Loading…
Reference in a new issue