From c6bc0160d2e2815fd21831dd8cf8938e188cdc13 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 9 Apr 2006 01:11:39 +0000 Subject: [PATCH] do apply mixahead math as int git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6262 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2