Mercurial > hg > dmlib
diff minijss/jssmix.c @ 1403:6aa0897265e8
Modernization cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 30 Oct 2017 18:15:11 +0200 |
parents | 4b22da2a309f |
children | 69a5af2eb1ea |
line wrap: on
line diff
--- a/minijss/jssmix.c Mon Oct 30 18:12:38 2017 +0200 +++ b/minijss/jssmix.c Mon Oct 30 18:15:11 2017 +0200 @@ -68,9 +68,7 @@ static int jvmFindMixRoutine(int outFormat, int outChannels, int mixerID) { - int i; - - for (i = 0; i < jvmNMixRoutines; i++) + for (int i = 0; i < jvmNMixRoutines; i++) { if (jvmMixRoutines[i].outFormat == outFormat && jvmMixRoutines[i].outChannels == outChannels && @@ -373,7 +371,7 @@ void jvmRenderAudio(JSSMixer *mixer, void *mixBuffer, const int mixLength) { - int i, blockLength, mixLeft; + int blockLength, mixLeft; JMIXER_ADDBUF_TYPE *ab; JSS_LOCK(mixer); @@ -406,7 +404,7 @@ } // Do mixing - for (i = 0; i < jsetNChannels; i++) + for (int i = 0; i < jsetNChannels; i++) { JSSChannel *chn = &(mixer->channels[i]); if (chn->chPlaying && !chn->chMute)