Lines Matching defs:pChannel
51 static void WT_SustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNTH_CHANNEL *pChannel, EAS_I32 voiceNum);
55 static EAS_I32 WT_UpdatePhaseInc (S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 pitchCents);
56 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain);
243 /*lint -esym(715, pChannel) used in some implementations */
244 static void WT_SustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNTH_CHANNEL *pChannel, EAS_I32 voiceNum)
251 DLS_SustainPedal(pVoiceMgr, pSynth, pVoice, pChannel, voiceNum);
312 S_SYNTH_CHANNEL *pChannel;
328 pChannel = &pSynth->channels[pVoice->channel & 15];
331 if (pChannel->channelFlags & CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS)
507 S_SYNTH_CHANNEL *pChannel;
522 pChannel = &pSynth->channels[pVoice->channel & 15];
541 intFrame.frame.gainTarget = WT_UpdateGain(pVoice, pWTVoice, pArt, pChannel, pWTRegion->gain);
544 temp = pChannel->staticPitch + pWTRegion->tuning;
547 if (pChannel->channelFlags & CHANNEL_FLAG_RHYTHM_CHANNEL)
551 intFrame.frame.phaseIncrement = WT_UpdatePhaseInc(pWTVoice, pArt, pChannel, temp);
615 static EAS_I32 WT_UpdatePhaseInc (S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 pitchCents)
621 ((pChannel->modWheel) << (NUM_EG1_FRAC_BITS -7)));
625 ((pChannel->channelPressure) << (NUM_EG1_FRAC_BITS -7)));
667 S_SYNTH_CHANNEL *pChannel;
669 pChannel = &pSynth->channels[channel];
675 staticGain = MULT_EG1_EG1((pChannel->volume) << (NUM_EG1_FRAC_BITS - 7),
676 (pChannel->expression) << (NUM_EG1_FRAC_BITS - 7));
681 pChannel->staticGain = (EAS_I16) MULT_EG1_EG1(staticGain, pSynth->masterVolume);
693 (((EAS_I32)(pChannel->pitchBend) << 2)
696 pChannel->staticPitch =
697 MULT_EG1_EG1(pitchBend, pChannel->pitchBendSensitivity);
700 if (!(pChannel->channelFlags & CHANNEL_FLAG_RHYTHM_CHANNEL))
701 pChannel->staticPitch += pChannel->finePitch + (pChannel->coarsePitch * 100);
704 pChannel->channelFlags &= ~CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS;
725 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain)
745 temp = MULT_EG1_EG1(temp, pChannel->staticGain);