comparison jssplr.c @ 61:a33e47232161

Silence some "unused parameter" warnings.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 01 Oct 2012 09:49:10 +0300
parents e0e470c3fc8e
children ff0fe1d1ab3d
comparison
equal deleted inserted replaced
60:f28cd66356f6 61:a33e47232161
203 } else 203 } else
204 (*frames)++; 204 (*frames)++;
205 } 205 }
206 206
207 207
208 static void jmpProcessExtInstrument(JSSPlayer * mp, JSSPlayerChannel *chn, int channel) 208 static void jmpProcessExtInstrument(JSSPlayerChannel *chn, int channel)
209 { 209 {
210 JSSExtInstrument *inst = chn->iCExtInstrument; 210 JSSExtInstrument *inst = chn->iCExtInstrument;
211 (void) channel;
211 212
212 // Get the instrument for envelope data 213 // Get the instrument for envelope data
213 if (!inst) return; 214 if (!inst) return;
214 215
215 // Process the autovibrato 216 // Process the autovibrato
598 599
599 /* Set volume for given module channel. 600 /* Set volume for given module channel.
600 */ 601 */
601 static void jmpSetVolume(JSSPlayerChannel * chn, int channel, int volume) 602 static void jmpSetVolume(JSSPlayerChannel * chn, int channel, int volume)
602 { 603 {
604 (void) channel;
605
603 // Check values 606 // Check values
604 if (volume < mpMinVol) volume = mpMinVol; else 607 if (volume < mpMinVol) volume = mpMinVol; else
605 if (volume > mpMaxVol) volume = mpMaxVol; 608 if (volume > mpMaxVol) volume = mpMaxVol;
606 609
607 // Set the volume 610 // Set the volume
615 /* Change the pitch of given channel by ADelta. 618 /* Change the pitch of given channel by ADelta.
616 */ 619 */
617 static void jmpChangePitch(JSSPlayerChannel *chn, int channel, int delta) 620 static void jmpChangePitch(JSSPlayerChannel *chn, int channel, int delta)
618 { 621 {
619 int value; 622 int value;
623 (void) channel;
620 624
621 // Calculate new pitch and check it 625 // Calculate new pitch and check it
622 value = chn->iCPitch + delta; 626 value = chn->iCPitch + delta;
623 if (value < 0) 627 if (value < 0)
624 value = 0; 628 value = 0;
631 635
632 /* Do a note portamento (pitch slide) effect for given module channel. 636 /* Do a note portamento (pitch slide) effect for given module channel.
633 */ 637 */
634 static void jmpDoPortamento(JSSPlayerChannel * chn, int channel) 638 static void jmpDoPortamento(JSSPlayerChannel * chn, int channel)
635 { 639 {
640 (void) channel;
641
636 // Check for zero parameter 642 // Check for zero parameter
637 if (chn->iLastPortaToNoteParam == 0) 643 if (chn->iLastPortaToNoteParam == 0)
638 { 644 {
639 JMPSETNDFLAGS(cdfNewPitch); 645 JMPSETNDFLAGS(cdfNewPitch);
640 return; 646 return;
769 * here is included also a slightly kludgy implementation of the 775 * here is included also a slightly kludgy implementation of the
770 * FT2 patloop bug. 776 * FT2 patloop bug.
771 */ 777 */
772 static void jmpDoPatternLoop(JSSPlayer * mp, JSSPlayerChannel *chn, int channel, int paramY) 778 static void jmpDoPatternLoop(JSSPlayer * mp, JSSPlayerChannel *chn, int channel, int paramY)
773 { 779 {
780 (void) channel;
781
774 // Check what we need to do 782 // Check what we need to do
775 if (paramY > 0) 783 if (paramY > 0)
776 { 784 {
777 // SBx/E6x loops 'x' times 785 // SBx/E6x loops 'x' times
778 if (chn->iPatLoopCount == 1) 786 if (chn->iPatLoopCount == 1)
1475 for (channel = 0; channel < mp->module->nchannels; channel++) 1483 for (channel = 0; channel < mp->module->nchannels; channel++)
1476 { 1484 {
1477 JSSPlayerChannel *chn = &mp->channels[channel]; 1485 JSSPlayerChannel *chn = &mp->channels[channel];
1478 1486
1479 // Process extended instruments 1487 // Process extended instruments
1480 jmpProcessExtInstrument(mp, chn, channel); 1488 jmpProcessExtInstrument(chn, channel);
1481 1489
1482 // Check NDFlags and update channel data 1490 // Check NDFlags and update channel data
1483 flags = chn->iCNewDataFlags; 1491 flags = chn->iCNewDataFlags;
1484 if (flags) 1492 if (flags)
1485 { 1493 {