Lines Matching refs:voices
298 InitVoice(&pVoiceMgr->voices[i]); in VMInitialize()
593 if (pVoiceMgr->voices[i].voiceState != eVoiceStateStolen) in VMInitializeAllVoices()
595 if (GET_VSYNTH(pVoiceMgr->voices[i].channel) == vSynthNum) in VMInitializeAllVoices()
596 InitVoice(&pVoiceMgr->voices[i]); in VMInitializeAllVoices()
600 if (GET_VSYNTH(pVoiceMgr->voices[i].nextChannel) == vSynthNum) in VMInitializeAllVoices()
601 InitVoice(&pVoiceMgr->voices[i]); in VMInitializeAllVoices()
618 pVoice = &pVoiceMgr->voices[voiceNum]; in VMMuteVoice()
639 S_SYNTH_VOICE *pVoice = &pVoiceMgr->voices[voiceNum]; in VMReleaseVoice()
652 …GetSynthPtr(voiceNum)->pfReleaseVoice(pVoiceMgr, pSynth, &pVoiceMgr->voices[voiceNum], GetAdjusted… in VMReleaseVoice()
746 if (pVoiceMgr->voices[i].voiceState == eVoiceStateFree) in VMMIPUpdateChannelMuting()
750 if (pVoiceMgr->voices[i].voiceState != eVoiceStateStolen) in VMMIPUpdateChannelMuting()
752 vSynthNum = GET_VSYNTH(pVoiceMgr->voices[i].channel); in VMMIPUpdateChannelMuting()
753 channel = GET_CHANNEL(pVoiceMgr->voices[i].channel); in VMMIPUpdateChannelMuting()
757 vSynthNum = GET_VSYNTH(pVoiceMgr->voices[i].nextChannel); in VMMIPUpdateChannelMuting()
758 channel = GET_CHANNEL(pVoiceMgr->voices[i].nextChannel); in VMMIPUpdateChannelMuting()
772 if (pVoiceMgr->voices[i].voiceState == eVoiceStateStolen) in VMMIPUpdateChannelMuting()
773 pVoiceMgr->voices[i].voiceState = eVoiceStateMuting; in VMMIPUpdateChannelMuting()
776 else if (pVoiceMgr->voices[i].voiceState != eVoiceStateMuting) in VMMIPUpdateChannelMuting()
885 if (pVoiceMgr->voices[i].voiceState == eVoiceStateStolen) in VMMuteAllVoices()
887 if (GET_VSYNTH(pVoiceMgr->voices[i].nextChannel) == pSynth->vSynthNum) in VMMuteAllVoices()
891 else if (pSynth->vSynthNum == GET_VSYNTH(pVoiceMgr->voices[i].channel)) in VMMuteAllVoices()
933 switch (pVoiceMgr->voices[i].voiceState) in VMReleaseAllVoices()
938 if (GET_VSYNTH(pVoiceMgr->voices[i].channel) == pSynth->vSynthNum) in VMReleaseAllVoices()
943 if (GET_VSYNTH(pVoiceMgr->voices[i].nextChannel) == pSynth->vSynthNum) in VMReleaseAllVoices()
1001 pVoice = &pVoiceMgr->voices[voiceNum]; in VMAllNotesOff()
1044 if (pVoiceMgr->voices[voiceNum].voiceFlags & VOICE_FLAG_DEFER_MIDI_NOTE_OFF) in VMDeferredStopNote()
1047 if (pVoiceMgr->voices[voiceNum].voiceState == eVoiceStateStolen) in VMDeferredStopNote()
1074 if (0 != pVoiceMgr->voices[voiceNum].gain) in VMDeferredStopNote()
1084 pVoiceMgr->voices[voiceNum].voiceFlags ^= in VMDeferredStopNote()
1094 channel = pVoiceMgr->voices[voiceNum].channel & 15; in VMDeferredStopNote()
1099 …GetSynthPtr(voiceNum)->pfSustainPedal(pVoiceMgr, pSynth, &pVoiceMgr->voices[voiceNum], &pSynth->ch… in VMDeferredStopNote()
1162 pVoice = &pVoiceMgr->voices[voiceNum]; in VMReleaseAllDeferredNoteOffs()
1220 if (channel == pVoiceMgr->voices[voiceNum].channel) in VMCatchNotesForSustainPedal()
1222 if (eVoiceStateRelease == pVoiceMgr->voices[voiceNum].voiceState) in VMCatchNotesForSustainPedal()
1223 …GetSynthPtr(voiceNum)->pfSustainPedal(pVoiceMgr, pSynth, &pVoiceMgr->voices[voiceNum], &pSynth->ch… in VMCatchNotesForSustainPedal()
1249 if (age - pVoiceMgr->voices[i].age > 0) in VMUpdateAllNotesAge()
1250 pVoiceMgr->voices[i].age++; in VMUpdateAllNotesAge()
1273 S_SYNTH_VOICE *pVoice = &pVoiceMgr->voices[voiceNum]; in VMStolenVoice()
1279 …e(pVoiceMgr, pVoiceMgr->pSynth[GET_VSYNTH(pVoice->channel)], &pVoiceMgr->voices[voiceNum], GetAdju… in VMStolenVoice()
1373 pVoice = &pVoiceMgr->voices[voiceNum]; in VMRetargetStolenVoice()
1390 VMFreeVoice(pVoiceMgr, pSynth, &pVoiceMgr->voices[voiceNum]); in VMRetargetStolenVoice()
1424 …GetSynthPtr(voiceNum)->pfStartVoice(pVoiceMgr, pNextSynth, &pVoiceMgr->voices[voiceNum], GetAdjust… in VMRetargetStolenVoice()
1459 if (pVoiceMgr->voices[voiceNum].voiceState != eVoiceStateStolen) in VMCheckKeyGroup()
1462 if (channel == pVoiceMgr->voices[voiceNum].channel) in VMCheckKeyGroup()
1465 pRegion = GetRegionPtr(pSynth, pVoiceMgr->voices[voiceNum].regionIndex); in VMCheckKeyGroup()
1473 … if (pVoiceMgr->voices[voiceNum].voiceFlags & VOICE_FLAG_NO_SAMPLES_SYNTHESIZED_YET) in VMCheckKeyGroup()
1474 pVoiceMgr->voices[voiceNum].voiceFlags |= VOICE_FLAG_DEFER_MUTE; in VMCheckKeyGroup()
1487 if (channel == pVoiceMgr->voices[voiceNum].nextChannel) in VMCheckKeyGroup()
1490 pRegion = GetRegionPtr(pSynth, pVoiceMgr->voices[voiceNum].nextRegionIndex); in VMCheckKeyGroup()
1498 … if (pVoiceMgr->voices[voiceNum].voiceFlags & VOICE_FLAG_NO_SAMPLES_SYNTHESIZED_YET) in VMCheckKeyGroup()
1499 pVoiceMgr->voices[voiceNum].voiceFlags |= VOICE_FLAG_DEFER_MUTE; in VMCheckKeyGroup()
1554 if (pVoiceMgr->voices[voiceNum].voiceState != eVoiceStateStolen) in VMCheckPolyphonyLimiting()
1558 …if ((channel == pVoiceMgr->voices[voiceNum].channel) && (note == pVoiceMgr->voices[voiceNum].note)) in VMCheckPolyphonyLimiting()
1561 age = pVoiceMgr->age - pVoiceMgr->voices[voiceNum].age; in VMCheckPolyphonyLimiting()
1576 …if ((channel == pVoiceMgr->voices[voiceNum].nextChannel) && (note == pVoiceMgr->voices[voiceNum].n… in VMCheckPolyphonyLimiting()
1676 S_SYNTH_VOICE *pVoice = &pVoiceMgr->voices[voiceNum]; in VMStartVoice()
1692 pVoiceMgr->voices[voiceNum].channel = VSynthToChannel(pSynth, channel); in VMStartVoice()
1693 pVoiceMgr->voices[voiceNum].note = note; in VMStartVoice()
1694 pVoiceMgr->voices[voiceNum].velocity = velocity; in VMStartVoice()
1697 pVoiceMgr->voices[voiceNum].age = pVoiceMgr->age++; in VMStartVoice()
1700 pVoiceMgr->voices[voiceNum].voiceState = eVoiceStateStart; in VMStartVoice()
1707 …GetSynthPtr(voiceNum)->pfStartVoice(pVoiceMgr, pSynth, &pVoiceMgr->voices[voiceNum], GetAdjustedVo… in VMStartVoice()
1897 if (eVoiceStateStolen != pVoiceMgr->voices[voiceNum].voiceState) in VMStopNote()
1901 …if ((channel == pVoiceMgr->voices[voiceNum].channel) && (note == pVoiceMgr->voices[voiceNum].note)) in VMStopNote()
1911 … pVoiceMgr->voices[voiceNum].voiceFlags |= VOICE_FLAG_SUSTAIN_PEDAL_DEFER_NOTE_OFF; in VMStopNote()
1916 if (pVoiceMgr->voices[voiceNum].voiceFlags & VOICE_FLAG_NO_SAMPLES_SYNTHESIZED_YET) in VMStopNote()
1921 pVoiceMgr->voices[voiceNum].voiceFlags |= VOICE_FLAG_DEFER_MIDI_NOTE_OFF; in VMStopNote()
1933 …else if ((channel == pVoiceMgr->voices[voiceNum].nextChannel) && (note == pVoiceMgr->voices[voiceN… in VMStopNote()
1940 pVoiceMgr->voices[voiceNum].voiceFlags |= VOICE_FLAG_DEFER_MIDI_NOTE_OFF; in VMStopNote()
1968 if ( pVoiceMgr->voices[voiceNum].voiceState == eVoiceStateFree) in VMFindAvailableVoice()
2030 pCurrVoice = &pVoiceMgr->voices[voiceNum]; in VMStealVoice()
2109 if (pVoiceMgr->voices[bestCandidate].voiceState == eVoiceStateStolen) in VMStealVoice()
2810 …if ((pVoiceMgr->voices[voiceNum].voiceState == eVoiceStateStolen) && (pVoiceMgr->voices[voiceNum].… in VMAddSamples()
2814 pSynth = pVoiceMgr->pSynth[pVoiceMgr->voices[voiceNum].channel >> 4]; in VMAddSamples()
2817 if (pVoiceMgr->voices[voiceNum].voiceState != eVoiceStateFree) in VMAddSamples()
2819 …done = GetSynthPtr(voiceNum)->pfUpdateVoice(pVoiceMgr, pSynth, &pVoiceMgr->voices[voiceNum], GetAd… in VMAddSamples()
2826 if (pVoiceMgr->voices[voiceNum].voiceState == eVoiceStateStolen) in VMAddSamples()
2827 pVoiceMgr->voices[voiceNum].gain = 0; in VMAddSamples()
2831 VMFreeVoice(pVoiceMgr, pSynth, &pVoiceMgr->voices[voiceNum]); in VMAddSamples()
2835 if (pVoiceMgr->voices[voiceNum].voiceFlags & VOICE_FLAG_DEFER_MUTE) in VMAddSamples()
2837 …pVoiceMgr->voices[voiceNum].voiceFlags &= ~(VOICE_FLAG_DEFER_MUTE | VOICE_FLAG_DEFER_MIDI_NOTE_OFF… in VMAddSamples()
2842 if (pVoiceMgr->voices[voiceNum].voiceState == eVoiceStateStart) in VMAddSamples()
2843 pVoiceMgr->voices[voiceNum].voiceState = eVoiceStatePlay; in VMAddSamples()
3109 …if ((pVoiceMgr->voices[i].voiceState != eVoiceStateFree) && (pVoiceMgr->voices[i].voiceState != eV… in VMSetSynthPolyphony()
3126 pVoice = &pVoiceMgr->voices[i]; in VMSetSynthPolyphony()
3276 if (GET_VSYNTH(pVoiceMgr->voices[i].nextChannel) != pSynth->vSynthNum) in VMSetPolyphony()
3280 …if ((pVoiceMgr->voices[i].voiceState != eVoiceStateFree) && (pVoiceMgr->voices[i].voiceState != eV… in VMSetPolyphony()
3295 pVoice = &pVoiceMgr->voices[i]; in VMSetPolyphony()
3871 pVoice = &pEASData->pVoiceMgr->voices[i]; in VMSanityCheck()