From: molivier Date: Tue, 23 Mar 2004 15:59:10 +0000 (+0000) Subject: Fixed the WAV file loading code (loopstart was always 0 if the sound was looped) X-Git-Tag: xonotic-v0.1.0preview~5964 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=50179cc6a7fa538adf02e37077776a556e6ba63e;p=xonotic%2Fdarkplaces.git Fixed the WAV file loading code (loopstart was always 0 if the sound was looped) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4053 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_mem.c b/snd_mem.c index d924d66e..5e1ea8f9 100644 --- a/snd_mem.c +++ b/snd_mem.c @@ -283,7 +283,7 @@ qboolean S_LoadWavFile (const char *filename, sfx_t *s) if (info.loopstart < 0) s->loopstart = -1; else - s->loopstart = (double) s->loopstart * (double) shm->format.speed / (double) s->format.speed; + s->loopstart = (double)info.loopstart * (double)shm->format.speed / (double)s->format.speed; #if BYTE_ORDER != LITTLE_ENDIAN // We must convert the WAV data from little endian