Lines Matching refs:pVoiceMgr
51 static EAS_RESULT WT_Initialize(S_VOICE_MGR *pVoiceMgr);
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…
57 static void WT_UpdateChannel (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel);
116 static EAS_RESULT WT_Initialize (S_VOICE_MGR *pVoiceMgr) in WT_Initialize() argument
123 pVoiceMgr->wtVoices[i].artIndex = DEFAULT_ARTICULATION_INDEX; in WT_Initialize()
125 pVoiceMgr->wtVoices[i].eg1State = DEFAULT_EG1_STATE; in WT_Initialize()
126 pVoiceMgr->wtVoices[i].eg1Value = DEFAULT_EG1_VALUE; in WT_Initialize()
127 pVoiceMgr->wtVoices[i].eg1Increment = DEFAULT_EG1_INCREMENT; in WT_Initialize()
129 pVoiceMgr->wtVoices[i].eg2State = DEFAULT_EG2_STATE; in WT_Initialize()
130 pVoiceMgr->wtVoices[i].eg2Value = DEFAULT_EG2_VALUE; in WT_Initialize()
131 pVoiceMgr->wtVoices[i].eg2Increment = DEFAULT_EG2_INCREMENT; in WT_Initialize()
135 pVoiceMgr->wtVoices[i].gainLeft = DEFAULT_VOICE_GAIN; in WT_Initialize()
136 pVoiceMgr->wtVoices[i].gainRight = DEFAULT_VOICE_GAIN; in WT_Initialize()
139 pVoiceMgr->wtVoices[i].phaseFrac = DEFAULT_PHASE_FRAC; in WT_Initialize()
140 pVoiceMgr->wtVoices[i].phaseAccum = DEFAULT_PHASE_INT; in WT_Initialize()
143 pVoiceMgr->wtVoices[i].filter.z1 = DEFAULT_FILTER_ZERO; in WT_Initialize()
144 pVoiceMgr->wtVoices[i].filter.z2 = DEFAULT_FILTER_ZERO; in WT_Initialize()
166 static void WT_ReleaseVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I3… in WT_ReleaseVoice() argument
174 DLS_ReleaseVoice(pVoiceMgr, pSynth, pVoice, voiceNum); in WT_ReleaseVoice()
179 pWTVoice = &pVoiceMgr->wtVoices[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
217 DLS_MuteVoice(pVoiceMgr, pSynth, pVoice, voiceNum); in WT_MuteVoice()
229 pVoiceMgr->wtVoices[voiceNum].eg1State = eEnvelopeStateMuted; in WT_MuteVoice()
230 pVoiceMgr->wtVoices[voiceNum].eg2State = eEnvelopeStateMuted; 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
254 DLS_SustainPedal(pVoiceMgr, pSynth, pVoice, pChannel, voiceNum); in WT_SustainPedal()
260 pWTVoice = &pVoiceMgr->wtVoices[voiceNum]; 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
330 pWTVoice = &pVoiceMgr->wtVoices[voiceNum]; in WT_StartVoice()
335 WT_UpdateChannel(pVoiceMgr, pSynth, pVoice->channel & 15); in WT_StartVoice()
339 return DLS_StartVoice(pVoiceMgr, pSynth, pVoice, voiceNum, regionIndex); in WT_StartVoice()
428 WTE_ConfigVoice(voiceNum - NUM_PRIMARY_VOICES, &wtConfig, pVoiceMgr->pFrameBuffer); 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
523 return DLS_UpdateVoice(pVoiceMgr, pSynth, pVoice, voiceNum, pMixBuffer, numSamples); in WT_UpdateVoice()
527 pWTVoice = &pVoiceMgr->wtVoices[voiceNum]; in WT_UpdateVoice()
562 intFrame.pAudioBuffer = pVoiceMgr->voiceBuffer; in WT_UpdateVoice()
585 WTE_ProcessVoice(voiceNum - NUM_PRIMARY_VOICES, &intFrame.frame, pVoiceMgr->pFrameBuffer); in WT_UpdateVoice()
674 static void WT_UpdateChannel (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel) in WT_UpdateChannel() argument