Lines Matching refs:pVoice
53 static void WT_ReleaseVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I3…
54 static void WT_MuteVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 v…
55 static void WT_SustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNT…
56 static EAS_RESULT WT_StartVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EA…
57 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS…
60 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pA…
167 static void WT_ReleaseVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I3… in WT_ReleaseVoice() argument
173 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_ReleaseVoice()
175 DLS_ReleaseVoice(pVoiceMgr, pSynth, pVoice, voiceNum); in WT_ReleaseVoice()
212 static void WT_MuteVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 v… in WT_MuteVoice() argument
216 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_MuteVoice()
218 DLS_MuteVoice(pVoiceMgr, pSynth, pVoice, voiceNum); in WT_MuteVoice()
224 pVoice->voiceFlags &= in WT_MuteVoice()
248 static void WT_SustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNT… in WT_SustainPedal() argument
253 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_SustainPedal()
255 DLS_SustainPedal(pVoiceMgr, pSynth, pVoice, pChannel, voiceNum); in WT_SustainPedal()
268 pVoice->voiceState = eVoiceStatePlay; in WT_SustainPedal()
274 pVoice->voiceFlags |= VOICE_FLAG_SUSTAIN_PEDAL_DEFER_NOTE_OFF; in WT_SustainPedal()
311 static EAS_RESULT WT_StartVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EA… in WT_StartVoice() argument
327 pVoice->regionIndex = regionIndex; in WT_StartVoice()
328 pVoice->voiceFlags = VOICE_FLAG_NO_SAMPLES_SYNTHESIZED_YET; in WT_StartVoice()
332 pChannel = &pSynth->channels[pVoice->channel & 15]; in WT_StartVoice()
336 WT_UpdateChannel(pVoiceMgr, pSynth, pVoice->channel & 15); in WT_StartVoice()
339 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_StartVoice()
340 return DLS_StartVoice(pVoiceMgr, pSynth, pVoice, voiceNum, regionIndex); in WT_StartVoice()
364 pVoice->gain = 0; in WT_StartVoice()
374 pan = (EAS_INT) pSynth->channels[pVoice->channel & 15].pan - 64; in WT_StartVoice()
432 wtConfig.gain = pVoice->gain; in WT_StartVoice()
529 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS… in WT_UpdateVoice() argument
540 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_UpdateVoice()
541 return DLS_UpdateVoice(pVoiceMgr, pSynth, pVoice, voiceNum, pMixBuffer, numSamples); in WT_UpdateVoice()
546 pWTRegion = &pSynth->pEAS->pWTRegions[pVoice->regionIndex & REGION_INDEX_MASK]; in WT_UpdateVoice()
548 pChannel = &pSynth->channels[pVoice->channel & 15]; in WT_UpdateVoice()
549 intFrame.prevGain = pVoice->gain; in WT_UpdateVoice()
567 intFrame.frame.gainTarget = WT_UpdateGain(pVoice, pWTVoice, pArt, pChannel, pWTRegion->gain); in WT_UpdateVoice()
574 temp += pVoice->note * 100; in WT_UpdateVoice()
576 temp += (pVoice->note + pSynth->globalTranspose) * 100; in WT_UpdateVoice()
620 pVoice->voiceFlags &= ~VOICE_FLAG_NO_SAMPLES_SYNTHESIZED_YET; in WT_UpdateVoice()
623 if ((pVoice->voiceState != eVoiceStateStolen) && (pWTVoice->eg1State == eEnvelopeStateMuted)) in WT_UpdateVoice()
630 pVoice->gain = (EAS_I16) intFrame.frame.gainTarget; in WT_UpdateVoice()
765 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pA… in WT_UpdateGain() argument
778 temp = (pVoice->velocity) << (NUM_EG1_FRAC_BITS - 7); in WT_UpdateGain()