Lines Matching refs:pChannel
100 …GR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNTH_CHANNEL *pChannel, EAS_I32 voiceNum…
325 …GR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNTH_CHANNEL *pChannel, EAS_I32 voiceNum) in FM_SustainPedal() argument
399 S_SYNTH_CHANNEL *pChannel; in FM_StartVoice() local
407 pChannel = GetChannelPtr(pSynth, pVoice); in FM_StartVoice()
411 if (pChannel->channelFlags & CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS) in FM_StartVoice()
422 temp = (EAS_I32) pChannel->pan - 64; in FM_StartVoice()
435 pFMVoice->voiceGain = (EAS_I16) EAS_LogToLinear16(pChannel->staticGain); in FM_StartVoice()
517 S_SYNTH_CHANNEL *pChannel; in FM_UpdateChannel() local
520 pChannel = &pSynth->channels[channel]; in FM_UpdateChannel()
523 temp = fmControlTable[pChannel->volume]; in FM_UpdateChannel()
526 temp += fmControlTable[pChannel->expression]; in FM_UpdateChannel()
529 pChannel->staticGain = (EAS_I16) max(temp,-32768); in FM_UpdateChannel()
533 temp = (((EAS_I32)(pChannel->pitchBend) << 2) - 32768); in FM_UpdateChannel()
535 temp = FMUL_15x15(temp, pChannel->pitchBendSensitivity); in FM_UpdateChannel()
541 if (!(pChannel->channelFlags & CHANNEL_FLAG_RHYTHM_CHANNEL)) in FM_UpdateChannel()
542 temp += (pChannel->finePitch + (pChannel->coarsePitch * 100)); in FM_UpdateChannel()
545 pChannel->staticPitch = temp; in FM_UpdateChannel()
550 pChannel->modWheel << (NUM_EG1_FRAC_BITS -7)); in FM_UpdateChannel()
553 pChannel->lfoAmt = (EAS_I16) (temp + in FM_UpdateChannel()
555 pChannel->channelPressure << (NUM_EG1_FRAC_BITS -7))); in FM_UpdateChannel()
558 pChannel->channelFlags &= ~CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS; in FM_UpdateChannel()
728 …S_SYNTH_VOICE *pVoice, S_FM_VOICE *pFMVoice, const S_FM_REGION *pRegion, S_SYNTH_CHANNEL *pChannel) in FM_UpdateDynamic() argument
743 temp = (fmScaleTable[pRegion->vibTrem >> 4] >> 1) + pChannel->lfoAmt; in FM_UpdateDynamic()
758 pChannel->staticPitch; in FM_UpdateDynamic()
801 S_SYNTH_CHANNEL *pChannel; in FM_UpdateVoice() local
812 pChannel = GetChannelPtr(pSynth, pVoice); in FM_UpdateVoice()
861 done = FM_UpdateDynamic(pVoice, pFMVoice, pRegion, pChannel); in FM_UpdateVoice()
868 temp += pChannel->staticGain; in FM_UpdateVoice()