Home | History | Annotate | Download | only in lib_src

Lines Matching defs:pChannel

100 static void FM_SustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNTH_CHANNEL *pChannel, EAS_I32 voiceNum);
324 /*lint -esym(715, pChannel) standard interface, pVoiceMgr not used */
325 static void FM_SustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNTH_CHANNEL *pChannel, EAS_I32 voiceNum)
399 S_SYNTH_CHANNEL *pChannel;
407 pChannel = GetChannelPtr(pSynth, pVoice);
411 if (pChannel->channelFlags & CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS)
422 temp = (EAS_I32) pChannel->pan - 64;
435 pFMVoice->voiceGain = (EAS_I16) EAS_LogToLinear16(pChannel->staticGain);
517 S_SYNTH_CHANNEL *pChannel;
520 pChannel = &pSynth->channels[channel];
523 temp = fmControlTable[pChannel->volume];
526 temp += fmControlTable[pChannel->expression];
529 pChannel->staticGain = (EAS_I16) max(temp,-32768);
533 temp = (((EAS_I32)(pChannel->pitchBend) << 2) - 32768);
535 temp = FMUL_15x15(temp, pChannel->pitchBendSensitivity);
541 if (!(pChannel->channelFlags & CHANNEL_FLAG_RHYTHM_CHANNEL))
542 temp += (pChannel->finePitch + (pChannel->coarsePitch * 100));
545 pChannel->staticPitch = temp;
550 pChannel->modWheel << (NUM_EG1_FRAC_BITS -7));
553 pChannel->lfoAmt = (EAS_I16) (temp +
555 pChannel->channelPressure << (NUM_EG1_FRAC_BITS -7)));
558 pChannel->channelFlags &= ~CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS;
728 static EAS_BOOL FM_UpdateDynamic (S_SYNTH_VOICE *pVoice, S_FM_VOICE *pFMVoice, const S_FM_REGION *pRegion, S_SYNTH_CHANNEL *pChannel)
743 temp = (fmScaleTable[pRegion->vibTrem >> 4] >> 1) + pChannel->lfoAmt;
758 pChannel->staticPitch;
801 S_SYNTH_CHANNEL *pChannel;
812 pChannel = GetChannelPtr(pSynth, pVoice);
861 done = FM_UpdateDynamic(pVoice, pFMVoice, pRegion, pChannel);
868 temp += pChannel->staticGain;