Mercurial > hg > dmlib
diff minijss/jssplr.c @ 1127:e22d4ceb6414
Cosmetics pass, remove excess and trailing whitespace.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 04 Mar 2015 06:11:37 +0200 |
parents | 954b1b392c8b |
children | d0898867ec4c |
line wrap: on
line diff
--- a/minijss/jssplr.c Wed Mar 04 06:08:22 2015 +0200 +++ b/minijss/jssplr.c Wed Mar 04 06:11:37 2015 +0200 @@ -55,24 +55,24 @@ mnote = (note % 12) * 8, moctave = note / 12, period1, period2; - + period1 = jmpNoteToAmigaPeriod(mnote, mfinetune); - + if (finetune < 0) { mfinetune--; finetune = -finetune; } else mfinetune++; - + period2 = jmpNoteToAmigaPeriod(mnote, mfinetune); - + mfinetune = finetune & 15; period1 *= (16 - mfinetune); period2 *= mfinetune; - + res = ((period1 + period2) * 2) >> moctave; - + //fprintf(stderr, "jmpGetAmigaPeriod(%d, %d) = %d\n", note, finetune, res); } else @@ -123,7 +123,7 @@ if (!pe->exec) return FALSE; - + // Find current point, if not last point for (point = 0; point < env->npoints - 1; point++) { @@ -170,7 +170,7 @@ } else pe->frame++; } - + return TRUE; } @@ -236,7 +236,7 @@ JSSPlayer *jmpInit(JSSMixer *pDevice) { JSSPlayer *mp; - + // Allocate a player structure mp = dmMalloc0(sizeof(JSSPlayer)); if (mp == NULL) @@ -248,7 +248,7 @@ #ifdef JSS_SUP_THREADS mp->mutex = dmCreateMutex(); #endif - + return mp; } @@ -314,7 +314,7 @@ // Initialize channel data for (i = 0; i < jsetNChannels; i++) jmpClearChannel(&mp->channels[i]); - + JSS_UNLOCK(mp); } @@ -347,7 +347,7 @@ jvmRemoveCallback(mp->device); mp->isPlaying = FALSE; } - + JSS_UNLOCK(mp); } @@ -380,7 +380,7 @@ { BOOL orderOK; int pattern; - + pattern = jsetOrderEnd; mp->order = jsetNotSet; orderOK = FALSE; @@ -622,7 +622,7 @@ static void jmpDoTremolo(JSSPlayerChannel *chn, int channel) { (void) channel; - + if (chn->tremolo.depth != 0 && chn->tremolo.speed != 0) { int delta, tmp = chn->tremolo.pos & 31; @@ -1297,7 +1297,7 @@ // ...And finally process the Normal effects if (currNote->effect == jsetNotSet) return; - + param = currNote->param; JMPMAKEPARAM(param, paramX, paramY); JMPGETEFFECT(effect, currNote->effect); @@ -1460,7 +1460,7 @@ jmpSetNewOrder(mp, mp->order + 1); else mp->isPlaying = FALSE; - + // Check for FT2 quirks if (JMPGETMODFLAGS(mp, jmdfFT2Replay)) mp->row = mp->lastPatLoopRow; @@ -1511,7 +1511,7 @@ // Process extended instruments jmpProcessExtInstrument(chn, channel); - + // Check NDFlags and update channel data int flags = chn->newDataFlags; if (!flags) @@ -1545,7 +1545,7 @@ if (flags & cdfNewPitch) jmpCSetPitch(mp, chn, chn->pitch); - + if (flags & (cdfNewFreq | cdfNewPitch)) jvmSetFreq(mp->device, channel, chn->freq);