Lines Matching refs:pSynth
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…
54 static void WT_UpdateChannel (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel);
163 static void WT_ReleaseVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, S_SYNTH_VOICE *pVoice, EAS_I3… in WT_ReleaseVoice() argument
171 DLS_ReleaseVoice(pVoiceMgr, pSynth, pVoice, voiceNum); in WT_ReleaseVoice()
177 pArticulation = &pSynth->pEAS->pArticulations[pWTVoice->artIndex]; 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
214 DLS_MuteVoice(pVoiceMgr, pSynth, pVoice, voiceNum); 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
251 DLS_SustainPedal(pVoiceMgr, pSynth, pVoice, pChannel, voiceNum); in WT_SustainPedal()
258 if (pWTVoice->eg1Value < pSynth->pEAS->pArticulations[pWTVoice->artIndex].eg1.sustainLevel) 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
328 pChannel = &pSynth->channels[pVoice->channel & 15]; in WT_StartVoice()
332 WT_UpdateChannel(pVoiceMgr, pSynth, pVoice->channel & 15); in WT_StartVoice()
336 return DLS_StartVoice(pVoiceMgr, pSynth, pVoice, voiceNum, regionIndex); in WT_StartVoice()
339 pRegion = &(pSynth->pEAS->pWTRegions[regionIndex]); in WT_StartVoice()
346 pArt = &pSynth->pEAS->pArticulations[pWTVoice->artIndex]; in WT_StartVoice()
370 pan = (EAS_INT) pSynth->channels[pVoice->channel & 15].pan - 64; in WT_StartVoice()
395 …pWTVoice->phaseAccum = (EAS_U32) pSynth->pEAS->pSamples + pSynth->pEAS->pSampleOffsets[pRegion->wa… in WT_StartVoice()
397 pWTVoice->phaseAccum = pSynth->pEAS->pSampleOffsets[pRegion->waveIndex]; in WT_StartVoice()
399 …pWTVoice->phaseAccum = (EAS_U32) pSynth->pEAS->pSamples + pSynth->pEAS->pSampleOffsets[pRegion->wa… in WT_StartVoice()
408 …pWTVoice->loopStart = pWTVoice->loopEnd = pWTVoice->phaseAccum + pSynth->pEAS->pSampleLen[pRegion-… 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
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()
517 pArt = &pSynth->pEAS->pArticulations[pWTVoice->artIndex]; in WT_UpdateVoice()
518 pChannel = &pSynth->channels[pVoice->channel & 15]; in WT_UpdateVoice()
530 if (pSynth->pEAS->libAttr & LIB_FORMAT_FILTER_ENABLED) in WT_UpdateVoice()
546 temp += (pVoice->note + pSynth->globalTranspose) * 100; in WT_UpdateVoice()
657 static void WT_UpdateChannel (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel) in WT_UpdateChannel() argument
663 pChannel = &pSynth->channels[channel]; in WT_UpdateChannel()
675 pChannel->staticGain = (EAS_I16) MULT_EG1_EG1(staticGain, pSynth->masterVolume); in WT_UpdateChannel()