• Home
  • Raw
  • Download

Lines Matching refs:channel

165 EAS_INLINE EAS_U8 VSynthToChannel (S_SYNTH *pSynth, EAS_U8 channel)  in VSynthToChannel()  argument
168 return channel | (pSynth->vSynthNum << 4); in VSynthToChannel()
179 pVoice->channel = UNASSIGNED_SYNTH_CHANNEL; in InitVoice()
211 pSynth = pVoiceMgr->pSynth[GET_VSYNTH(pVoice->channel)]; in IncVoicePoolCount()
212 pool = pSynth->channels[GET_CHANNEL(pVoice->channel)].pool; in IncVoicePoolCount()
244 pSynth = pVoiceMgr->pSynth[GET_VSYNTH(pVoice->channel)]; in DecVoicePoolCount()
245 pool = pSynth->channels[GET_CHANNEL(pVoice->channel)].pool; in DecVoicePoolCount()
595 if (GET_VSYNTH(pVoiceMgr->voices[i].channel) == vSynthNum) in VMInitializeAllVoices()
625 pSynth = pVoiceMgr->pSynth[GET_VSYNTH(pVoice->channel)]; in VMMuteVoice()
686 void VMSetMIPEntry (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 priority, EAS_U… in VMSetMIPEntry() argument
696 pSynth->channels[channel].pool = priority; in VMSetMIPEntry()
697 pSynth->channels[channel].mip = mip; in VMSetMIPEntry()
713 EAS_INT channel; in VMMIPUpdateChannelMuting() local
752 vSynthNum = GET_VSYNTH(pVoiceMgr->voices[i].channel); in VMMIPUpdateChannelMuting()
753 channel = GET_CHANNEL(pVoiceMgr->voices[i].channel); in VMMIPUpdateChannelMuting()
758 channel = GET_CHANNEL(pVoiceMgr->voices[i].nextChannel); in VMMIPUpdateChannelMuting()
766 pool = pSynth->channels[channel].pool; in VMMIPUpdateChannelMuting()
769 if (pSynth->channels[channel].channelFlags & CHANNEL_FLAG_MUTE) in VMMIPUpdateChannelMuting()
891 else if (pSynth->vSynthNum == GET_VSYNTH(pVoiceMgr->voices[i].channel)) in VMMuteAllVoices()
938 if (GET_VSYNTH(pVoiceMgr->voices[i].channel) == pSynth->vSynthNum) in VMReleaseAllVoices()
980 void VMAllNotesOff (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel) in VMAllNotesOff() argument
986 if (channel >= NUM_SYNTH_CHANNELS) in VMAllNotesOff()
998 channel = VSynthToChannel(pSynth, channel); in VMAllNotesOff()
1004 if (((pVoice->voiceState != eVoiceStateStolen) && (channel == pVoice->channel)) || in VMAllNotesOff()
1005 ((pVoice->voiceState == eVoiceStateStolen) && (channel == pVoice->nextChannel))) in VMAllNotesOff()
1036 EAS_INT channel; in VMDeferredStopNote() local
1094 channel = pVoiceMgr->voices[voiceNum].channel & 15; in VMDeferredStopNote()
1097 if (pSynth->channels[channel].channelFlags & CHANNEL_FLAG_SUSTAIN_PEDAL) in VMDeferredStopNote()
1099 …Pedal(pVoiceMgr, pSynth, &pVoiceMgr->voices[voiceNum], &pSynth->channels[channel], GetAdjustedVoic… in VMDeferredStopNote()
1140 void VMReleaseAllDeferredNoteOffs (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel) in VMReleaseAllDeferredNoteOffs() argument
1146 if (channel >= NUM_SYNTH_CHANNELS) in VMReleaseAllDeferredNoteOffs()
1158 channel = VSynthToChannel(pSynth, channel); in VMReleaseAllDeferredNoteOffs()
1163 if (channel == pVoice->channel) in VMReleaseAllDeferredNoteOffs()
1201 void VMCatchNotesForSustainPedal (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel) in VMCatchNotesForSustainPedal() argument
1206 if (channel >= NUM_SYNTH_CHANNELS) in VMCatchNotesForSustainPedal()
1215 channel = VSynthToChannel(pSynth, channel); in VMCatchNotesForSustainPedal()
1220 if (channel == pVoiceMgr->voices[voiceNum].channel) in VMCatchNotesForSustainPedal()
1223 …Pedal(pVoiceMgr, pSynth, &pVoiceMgr->voices[voiceNum], &pSynth->channels[channel], GetAdjustedVoic… in VMCatchNotesForSustainPedal()
1271 …Voice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_I32 voiceNum, EAS_U8 channel, EAS_U8 note, EAS… in VMStolenVoice() argument
1279 …GetSynthPtr(voiceNum)->pfMuteVoice(pVoiceMgr, pVoiceMgr->pSynth[GET_VSYNTH(pVoice->channel)], &pVo… in VMStolenVoice()
1283 pVoice->nextChannel = VSynthToChannel(pSynth, channel); in VMStolenVoice()
1374 pSynth = pVoiceMgr->pSynth[GET_VSYNTH(pVoice->channel)]; in VMRetargetStolenVoice()
1375 pMIDIChannel = &pSynth->channels[pVoice->channel & 15]; in VMRetargetStolenVoice()
1395 if (pVoice->channel != pVoice->nextChannel) in VMRetargetStolenVoice()
1405 pVoice->channel = pVoice->nextChannel; in VMRetargetStolenVoice()
1406 pMIDIChannel = &pNextSynth->channels[pVoice->channel & 15]; in VMRetargetStolenVoice()
1447 void VMCheckKeyGroup (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U16 keyGroup, EAS_U8 channel) in VMCheckKeyGroup() argument
1456 channel = VSynthToChannel(pSynth, channel); in VMCheckKeyGroup()
1462 if (channel == pVoiceMgr->voices[voiceNum].channel) in VMCheckKeyGroup()
1487 if (channel == pVoiceMgr->voices[voiceNum].nextChannel) in VMCheckKeyGroup()
1535 EAS_BOOL VMCheckPolyphonyLimiting (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 … in VMCheckPolyphonyLimiting() argument
1548 channel = VSynthToChannel(pSynth, channel); in VMCheckPolyphonyLimiting()
1558 …if ((channel == pVoiceMgr->voices[voiceNum].channel) && (note == pVoiceMgr->voices[voiceNum].note)) in VMCheckPolyphonyLimiting()
1576 …if ((channel == pVoiceMgr->voices[voiceNum].nextChannel) && (note == pVoiceMgr->voices[voiceNum].n… in VMCheckPolyphonyLimiting()
1594 VMStolenVoice(pVoiceMgr, pSynth, oldestVoiceNum, channel, note, velocity, regionIndex); in VMCheckPolyphonyLimiting()
1610 void VMStartVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 vel… in VMStartVoice() argument
1619 pChannel = &pSynth->channels[channel]; in VMStartVoice()
1655 VMCheckKeyGroup(pVoiceMgr, pSynth, keyGroup, channel); in VMStartVoice()
1660 …if (VMCheckPolyphonyLimiting(pVoiceMgr, pSynth, channel, note, velocity, regionIndex, lowVoice, hi… in VMStartVoice()
1692 pVoiceMgr->voices[voiceNum].channel = VSynthToChannel(pSynth, channel); in VMStartVoice()
1712 … if (VMStealVoice(pVoiceMgr, pSynth, &voiceNum, channel, note, lowVoice, highVoice) == EAS_SUCCESS) in VMStartVoice()
1713 VMStolenVoice(pVoiceMgr, pSynth, voiceNum, channel, note, velocity, regionIndex); in VMStartVoice()
1747 void VMStartNote (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velo… in VMStartNote() argument
1756 pChannel = &pSynth->channels[channel]; in VMStartNote()
1767 event.channel = channel; in VMStartNote()
1809 VMStartVoice(pVoiceMgr, pSynth, channel, note, velocity, regionIndex); in VMStartNote()
1833 VMStartVoice(pVoiceMgr, pSynth, channel, note, velocity, regionIndex); in VMStartNote()
1868 void VMStopNote (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 veloc… in VMStopNote() argument
1873 pChannel = &(pSynth->channels[channel]); in VMStopNote()
1879 event.channel = channel; in VMStopNote()
1891 channel = VSynthToChannel(pSynth, channel); in VMStopNote()
1901 …if ((channel == pVoiceMgr->voices[voiceNum].channel) && (note == pVoiceMgr->voices[voiceNum].note)) in VMStopNote()
1933 …else if ((channel == pVoiceMgr->voices[voiceNum].nextChannel) && (note == pVoiceMgr->voices[voiceN… in VMStopNote()
2013 … (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_INT *pVoiceNumber, EAS_U8 channel, EAS_U8 note, EAS… in VMStealVoice() argument
2045 pCurrSynth = pVoiceMgr->pSynth[GET_VSYNTH(pCurrVoice->channel)]; in VMStealVoice()
2046 currChannel = pCurrVoice->channel; in VMStealVoice()
2087 if ((note == currNote) && (channel == currChannel)) in VMStealVoice()
2139 void VMChannelPressure (S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 value) in VMChannelPressure() argument
2143 pChannel = &(pSynth->channels[channel]); in VMChannelPressure()
2181 void VMPitchBend (S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 nPitchLSB, EAS_U8 nPitchMSB) in VMPitchBend() argument
2185 pChannel = &(pSynth->channels[channel]); in VMPitchBend()
2213 void VMControlChange (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 controller, E… in VMControlChange() argument
2217 pChannel = &(pSynth->channels[channel]); in VMControlChange()
2288 VMReleaseAllDeferredNoteOffs(pVoiceMgr, pSynth, channel); in VMControlChange()
2312 VMCatchNotesForSustainPedal(pVoiceMgr, pSynth, channel); in VMControlChange()
2323 pSynth->channels[channel].reverbSend = value; in VMControlChange()
2329 pSynth->channels[channel].chorusSend = value; in VMControlChange()
2371 VMUpdateRPNStateMachine(pSynth, channel, controller, value); in VMControlChange()
2381 VMAllNotesOff(pVoiceMgr, pSynth, channel); in VMControlChange()
2422 EAS_RESULT VMUpdateRPNStateMachine (S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 controller, EAS_U8 valu… in VMUpdateRPNStateMachine() argument
2427 if (channel >= NUM_SYNTH_CHANNELS) in VMUpdateRPNStateMachine()
2435 pChannel = &(pSynth->channels[channel]); in VMUpdateRPNStateMachine()
2515 EAS_INT channel; in VMUpdateStaticChannelParameters() local
2524 for (channel = 0; channel < NUM_SYNTH_CHANNELS; channel++) in VMUpdateStaticChannelParameters()
2527 if (pSynth->channels[channel].regionIndex & FLAG_RGN_IDX_FM_SYNTH) in VMUpdateStaticChannelParameters()
2528 pSecondarySynth->pfUpdateChannel(pVoiceMgr, pSynth, (EAS_U8) channel); in VMUpdateStaticChannelParameters()
2530 pPrimarySynth->pfUpdateChannel(pVoiceMgr, pSynth, (EAS_U8) channel); in VMUpdateStaticChannelParameters()
2532 pPrimarySynth->pfUpdateChannel(pVoiceMgr, pSynth, (EAS_U8) channel); in VMUpdateStaticChannelParameters()
2546 for (channel = 0; channel < NUM_SYNTH_CHANNELS; channel++) in VMUpdateStaticChannelParameters()
2548 … if ( 0 != (pSynth->channels[channel].channelFlags & CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS)) in VMUpdateStaticChannelParameters()
2551 if (pSynth->channels[channel].regionIndex & FLAG_RGN_IDX_FM_SYNTH) in VMUpdateStaticChannelParameters()
2552 pSecondarySynth->pfUpdateChannel(pVoiceMgr, pSynth, (EAS_U8) channel); in VMUpdateStaticChannelParameters()
2554 pPrimarySynth->pfUpdateChannel(pVoiceMgr, pSynth, (EAS_U8) channel); in VMUpdateStaticChannelParameters()
2556 pPrimarySynth->pfUpdateChannel(pVoiceMgr, pSynth, (EAS_U8) channel); in VMUpdateStaticChannelParameters()
2687 void VMProgramChange (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 program) in VMProgramChange() argument
2698 pChannel = &pSynth->channels[channel]; in VMProgramChange()
2720 prgChg.channel = channel; in VMProgramChange()
2743 if (pSynth->channels[channel].channelFlags & CHANNEL_FLAG_RHYTHM_CHANNEL) in VMProgramChange()
2814 pSynth = pVoiceMgr->pSynth[pVoiceMgr->voices[voiceNum].channel >> 4]; in VMAddSamples()
2870 EAS_INT channel; in VMRender() local
2924 for (channel = 0; channel < NUM_SYNTH_CHANNELS; channel++) in VMRender()
2925 pSynth->channels[channel].channelFlags &= ~CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS; in VMRender()
3132 pSynth = pVoiceMgr->pSynth[GET_VSYNTH(pVoice->channel)]; in VMSetSynthPolyphony()
3154 …currentPriority += pSynth->channels[GET_CHANNEL(pVoice->channel)].pool << CHANNEL_PRIORITY_STEAL_W… in VMSetSynthPolyphony()
3452 void VMSetPitchBendRange (S_SYNTH *pSynth, EAS_INT channel, EAS_I16 pitchBendRange) in VMSetPitchBendRange() argument
3454 pSynth->channels[channel].pitchBendSensitivity = pitchBendRange; in VMSetPitchBendRange()
3776 void VMGetMIDIControllers (S_SYNTH *pSynth, EAS_U8 channel, S_MIDI_CONTROLLERS *pControl) in VMGetMIDIControllers() argument
3778 pControl->modWheel = pSynth->channels[channel].modWheel; in VMGetMIDIControllers()
3779 pControl->volume = pSynth->channels[channel].volume; in VMGetMIDIControllers()
3780 pControl->pan = pSynth->channels[channel].pan; in VMGetMIDIControllers()
3781 pControl->expression = pSynth->channels[channel].expression; in VMGetMIDIControllers()
3782 pControl->channelPressure = pSynth->channels[channel].channelPressure; in VMGetMIDIControllers()
3785 pControl->reverbSend = pSynth->channels[channel].reverbSend; in VMGetMIDIControllers()
3789 pControl->chorusSend = pSynth->channels[channel].chorusSend; in VMGetMIDIControllers()
3874 vSynthNum = GET_VSYNTH(pVoice->channel); in VMSanityCheck()
3908 poolCount[vSynthNum][pSynth->channels[GET_CHANNEL(pVoice->channel)].pool]++; in VMSanityCheck()
3914 poolCount[vSynthNum][pSynth->channels[GET_CHANNEL(pVoice->channel)].pool]++; in VMSanityCheck()