X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=snd_mix.c;h=2274f353ea5cdf6dc40915721de98d4a05d3b245;hb=b479b645319dd244ee2336feb9b9c5b1d31be6be;hp=4f3310bfcf1a83b3ef3eaad472b70fa7e850ceae;hpb=cfee52a1ec9db338098789cae89ae5cf1f7a6fbf;p=xonotic%2Fdarkplaces.git diff --git a/snd_mix.c b/snd_mix.c index 4f3310bf..2274f353 100644 --- a/snd_mix.c +++ b/snd_mix.c @@ -301,7 +301,7 @@ void S_MixToBuffer(void *stream, unsigned int bufferframes) // paint in the channels. // channels with zero volumes still advance in time but don't paint. - ch = channels; + ch = channels; // cppcheck complains here but it is wrong, channels is a channel_t[MAX_CHANNELS] and not an int for (channelindex = 0;channelindex < (int)total_channels;channelindex++, ch++) { sfx = ch->sfx; @@ -360,7 +360,6 @@ void S_MixToBuffer(void *stream, unsigned int bufferframes) // do the actual paint now (may skip work if silent) paint = paintbuffer; - wantframes = totalmixframes; istartframe = 0; for (wantframes = totalmixframes;wantframes > 0;posd += count * speedd, wantframes -= count) {