]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
do apply mixahead math as int
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 9 Apr 2006 01:11:39 +0000 (01:11 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 9 Apr 2006 01:11:39 +0000 (01:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6262 d7cf8633-e32d-0410-b094-e92efae38249

snd_main.c

index 76c08a4ba61e9de2d0e962af375f899eb7bd6a90..c523807a56b897867814aa889bdcf7b2d655263e 100644 (file)
@@ -1111,7 +1111,7 @@ void S_Update_(void)
                paintedtime = soundtime;
 
        // mix ahead of current position
-       endtime = (int)(soundtime + _snd_mixahead.value * shm->format.speed);
+       endtime = soundtime + (unsigned int)(_snd_mixahead.value * shm->format.speed);
        endtime = min(endtime, (unsigned int)(soundtime + shm->sampleframes));
 
        S_PaintChannels (endtime);