Lines Matching refs:pVoice
52 static void WT_ReleaseVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I3…
53 static void WT_MuteVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 v…
54 static void WT_SustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNT…
55 static EAS_RESULT WT_StartVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EA…
56 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS…
59 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pA…
166 static void WT_ReleaseVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I3… in WT_ReleaseVoice() argument
172 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_ReleaseVoice()
174 DLS_ReleaseVoice(pVoiceMgr, pSynth, pVoice, voiceNum); in WT_ReleaseVoice()
211 static void WT_MuteVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 v… in WT_MuteVoice() argument
215 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_MuteVoice()
217 DLS_MuteVoice(pVoiceMgr, pSynth, pVoice, voiceNum); in WT_MuteVoice()
223 pVoice->voiceFlags &= in WT_MuteVoice()
247 static void WT_SustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNT… in WT_SustainPedal() argument
252 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_SustainPedal()
254 DLS_SustainPedal(pVoiceMgr, pSynth, pVoice, pChannel, voiceNum); in WT_SustainPedal()
267 pVoice->voiceState = eVoiceStatePlay; in WT_SustainPedal()
273 pVoice->voiceFlags |= VOICE_FLAG_SUSTAIN_PEDAL_DEFER_NOTE_OFF; in WT_SustainPedal()
310 static EAS_RESULT WT_StartVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EA… in WT_StartVoice() argument
326 pVoice->regionIndex = regionIndex; in WT_StartVoice()
327 pVoice->voiceFlags = VOICE_FLAG_NO_SAMPLES_SYNTHESIZED_YET; in WT_StartVoice()
331 pChannel = &pSynth->channels[pVoice->channel & 15]; in WT_StartVoice()
335 WT_UpdateChannel(pVoiceMgr, pSynth, pVoice->channel & 15); in WT_StartVoice()
338 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_StartVoice()
339 return DLS_StartVoice(pVoiceMgr, pSynth, pVoice, voiceNum, regionIndex); in WT_StartVoice()
363 pVoice->gain = 0; in WT_StartVoice()
373 pan = (EAS_INT) pSynth->channels[pVoice->channel & 15].pan - 64; in WT_StartVoice()
421 wtConfig.gain = pVoice->gain; in WT_StartVoice()
511 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS… in WT_UpdateVoice() argument
522 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_UpdateVoice()
523 return DLS_UpdateVoice(pVoiceMgr, pSynth, pVoice, voiceNum, pMixBuffer, numSamples); in WT_UpdateVoice()
528 pWTRegion = &pSynth->pEAS->pWTRegions[pVoice->regionIndex & REGION_INDEX_MASK]; in WT_UpdateVoice()
530 pChannel = &pSynth->channels[pVoice->channel & 15]; in WT_UpdateVoice()
531 intFrame.prevGain = pVoice->gain; in WT_UpdateVoice()
549 intFrame.frame.gainTarget = WT_UpdateGain(pVoice, pWTVoice, pArt, pChannel, pWTRegion->gain); in WT_UpdateVoice()
556 temp += pVoice->note * 100; in WT_UpdateVoice()
558 temp += (pVoice->note + pSynth->globalTranspose) * 100; in WT_UpdateVoice()
591 pVoice->voiceFlags &= ~VOICE_FLAG_NO_SAMPLES_SYNTHESIZED_YET; in WT_UpdateVoice()
594 if ((pVoice->voiceState != eVoiceStateStolen) && (pWTVoice->eg1State == eEnvelopeStateMuted)) in WT_UpdateVoice()
601 pVoice->gain = (EAS_I16) intFrame.frame.gainTarget; in WT_UpdateVoice()
736 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pA… in WT_UpdateGain() argument
749 temp = (pVoice->velocity) << (NUM_EG1_FRAC_BITS - 7); in WT_UpdateGain()