From: havoc Date: Mon, 5 Aug 2002 11:39:08 +0000 (+0000) Subject: attempt to optimize SND_PaintChannelFrom8 a little bit X-Git-Tag: RELEASE_0_2_0_RC1~372 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=0677a97412504c7ef6d9e349ff11a1c585f76d2e attempt to optimize SND_PaintChannelFrom8 a little bit git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2199 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_mix.c b/snd_mix.c index cb47d1bf..e9325085 100644 --- a/snd_mix.c +++ b/snd_mix.c @@ -354,7 +354,7 @@ void SND_PaintChannelFrom8 (channel_t *ch, sfxcache_t *sc, int count) { int *lscale, *rscale; unsigned char *sfx; - int i; + int i, n; if (ch->leftvol > 255) ch->leftvol = 255; @@ -367,22 +367,20 @@ void SND_PaintChannelFrom8 (channel_t *ch, sfxcache_t *sc, int count) { // LordHavoc: stereo sound support, and optimizations sfx = (unsigned char *)sc->data + ch->pos * 2; - - for (i=0 ; idata + ch->pos; - - for (i=0 ; i