From: havoc Date: Sun, 9 Apr 2006 01:11:39 +0000 (+0000) Subject: do apply mixahead math as int X-Git-Tag: xonotic-v0.1.0preview~4101 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c6bc0160d2e2815fd21831dd8cf8938e188cdc13;p=xonotic%2Fdarkplaces.git do apply mixahead math as int git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6262 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_main.c b/snd_main.c index 76c08a4b..c523807a 100644 --- a/snd_main.c +++ b/snd_main.c @@ -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);