From: divverent Date: Fri, 14 Oct 2011 18:59:57 +0000 (+0000) Subject: fix warning X-Git-Tag: xonotic-v0.6.0~163^2~139 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3f9f3e395065f16028f1ce7748f703c1afc0da6f;p=xonotic%2Fdarkplaces.git fix warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11418 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_mix.c b/snd_mix.c index fa0069aa..cf992904 100644 --- a/snd_mix.c +++ b/snd_mix.c @@ -56,6 +56,8 @@ static void S_SoftClipPaintBuffer(portable_sampleframe_t *painted_ptr, int nbfra if((snd_softclip.integer == 1 && width <= 2) || snd_softclip.integer > 1) { + portable_sampleframe_t *p = painted_ptr; + #if 0 /* Soft clipping, the sound of a dream, thanks to Jon Wattes post to Musicdsp.org */ @@ -67,7 +69,6 @@ static void S_SoftClipPaintBuffer(portable_sampleframe_t *painted_ptr, int nbfra maxvol = max(1.0f, maxvol * (1.0f - nbframes / (0.4f * snd_renderbuffer->format.speed))); #define SOFTCLIP(x) if(fabs(x)>maxvol) maxvol=fabs(x); (x) /= maxvol; - portable_sampleframe_t *p = painted_ptr; if (channels == 8) // 7.1 surround { for (i = 0;i < nbframes;i++, p++)