Lines Matching refs:pVoice

49 static void WT_ReleaseVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I3…
50 static void WT_MuteVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 v…
51 static void WT_SustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNT…
52 static EAS_RESULT WT_StartVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EA…
53 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS…
56 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pA…
163 static void WT_ReleaseVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I3… in WT_ReleaseVoice() argument
169 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_ReleaseVoice()
171 DLS_ReleaseVoice(pVoiceMgr, pSynth, pVoice, voiceNum); in WT_ReleaseVoice()
208 static void WT_MuteVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I32 v… in WT_MuteVoice() argument
212 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_MuteVoice()
214 DLS_MuteVoice(pVoiceMgr, pSynth, pVoice, voiceNum); in WT_MuteVoice()
220 pVoice->voiceFlags &= in WT_MuteVoice()
244 static void WT_SustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, S_SYNT… in WT_SustainPedal() argument
249 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_SustainPedal()
251 DLS_SustainPedal(pVoiceMgr, pSynth, pVoice, pChannel, voiceNum); in WT_SustainPedal()
264 pVoice->voiceState = eVoiceStatePlay; in WT_SustainPedal()
270 pVoice->voiceFlags |= VOICE_FLAG_SUSTAIN_PEDAL_DEFER_NOTE_OFF; in WT_SustainPedal()
307 static EAS_RESULT WT_StartVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EA… in WT_StartVoice() argument
323 pVoice->regionIndex = regionIndex; in WT_StartVoice()
324 pVoice->voiceFlags = VOICE_FLAG_NO_SAMPLES_SYNTHESIZED_YET; in WT_StartVoice()
328 pChannel = &pSynth->channels[pVoice->channel & 15]; in WT_StartVoice()
332 WT_UpdateChannel(pVoiceMgr, pSynth, pVoice->channel & 15); in WT_StartVoice()
335 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_StartVoice()
336 return DLS_StartVoice(pVoiceMgr, pSynth, pVoice, voiceNum, regionIndex); in WT_StartVoice()
360 pVoice->gain = 0; in WT_StartVoice()
370 pan = (EAS_INT) pSynth->channels[pVoice->channel & 15].pan - 64; in WT_StartVoice()
418 wtConfig.gain = pVoice->gain; in WT_StartVoice()
499 static EAS_BOOL WT_UpdateVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS… in WT_UpdateVoice() argument
510 if (pVoice->regionIndex & FLAG_RGN_IDX_DLS_SYNTH) in WT_UpdateVoice()
511 return DLS_UpdateVoice(pVoiceMgr, pSynth, pVoice, voiceNum, pMixBuffer, numSamples); in WT_UpdateVoice()
516 pWTRegion = &pSynth->pEAS->pWTRegions[pVoice->regionIndex & REGION_INDEX_MASK]; in WT_UpdateVoice()
518 pChannel = &pSynth->channels[pVoice->channel & 15]; in WT_UpdateVoice()
519 intFrame.prevGain = pVoice->gain; in WT_UpdateVoice()
537 intFrame.frame.gainTarget = WT_UpdateGain(pVoice, pWTVoice, pArt, pChannel, pWTRegion->gain); in WT_UpdateVoice()
544 temp += pVoice->note * 100; in WT_UpdateVoice()
546 temp += (pVoice->note + pSynth->globalTranspose) * 100; in WT_UpdateVoice()
574 pVoice->voiceFlags &= ~VOICE_FLAG_NO_SAMPLES_SYNTHESIZED_YET; in WT_UpdateVoice()
577 if ((pVoice->voiceState != eVoiceStateStolen) && (pWTVoice->eg1State == eEnvelopeStateMuted)) in WT_UpdateVoice()
584 pVoice->gain = (EAS_I16) intFrame.frame.gainTarget; in WT_UpdateVoice()
719 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pA… in WT_UpdateGain() argument
732 temp = (pVoice->velocity) << (NUM_EG1_FRAC_BITS - 7); in WT_UpdateGain()