Home | History | Annotate | Download | only in lib_src

Lines Matching refs:regionIndex

125 EAS_INLINE const S_REGION* GetRegionPtr (S_SYNTH *pSynth, EAS_U16 regionIndex)
128 if (regionIndex & FLAG_RGN_IDX_DLS_SYNTH)
129 return &pSynth->pDLS->pDLSRegions[regionIndex & REGION_INDEX_MASK].wtRegion.region;
132 if (regionIndex & FLAG_RGN_IDX_FM_SYNTH)
133 return &pSynth->pEAS->pFMRegions[regionIndex & REGION_INDEX_MASK].region;
135 return &pSynth->pEAS->pWTRegions[regionIndex].region;
137 return &pSynth->pEAS->pWTRegions[regionIndex].region;
139 return &pSynth->pEAS->pFMRegions[regionIndex].region;
183 pVoice->regionIndex = DEFAULT_REGION_INDEX;
1271 static void VMStolenVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_I32 voiceNum, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIndex)
1286 pVoice->nextRegionIndex = regionIndex;
1412 pVoice->regionIndex = pVoice->nextRegionIndex;
1424 GetSynthPtr(voiceNum)->pfStartVoice(pVoiceMgr, pNextSynth, &pVoiceMgr->voices[voiceNum], GetAdjustedVoiceNum(voiceNum), pVoice->regionIndex);
1465 regionIndex);
1535 EAS_BOOL VMCheckPolyphonyLimiting (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIndex, EAS_I32 lowVoice, EAS_I32 highVoice)
1594 VMStolenVoice(pVoiceMgr, pSynth, oldestVoiceNum, channel, note, velocity, regionIndex);
1610 void VMStartVoice (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIndex)
1620 pRegion = GetRegionPtr(pSynth, regionIndex);
1628 if ((regionIndex & FLAG_RGN_IDX_FM_SYNTH) == 0)
1660 if (VMCheckPolyphonyLimiting(pVoiceMgr, pSynth, channel, note, velocity, regionIndex, lowVoice, highVoice) == EAS_TRUE)
1707 GetSynthPtr(voiceNum)->pfStartVoice(pVoiceMgr, pSynth, &pVoiceMgr->voices[voiceNum], GetAdjustedVoiceNum(voiceNum), regionIndex);
1713 VMStolenVoice(pVoiceMgr, pSynth, voiceNum, channel, note, velocity, regionIndex);
1750 EAS_U16 regionIndex;
1777 regionIndex = pChannel->regionIndex;
1797 if (regionIndex & FLAG_RGN_IDX_DLS_SYNTH)
1803 const S_DLS_REGION *pDLSRegion = (S_DLS_REGION*) GetRegionPtr(pSynth, regionIndex);
1809 VMStartVoice(pVoiceMgr, pSynth, channel, note, velocity, regionIndex);
1817 regionIndex++;
1828 const S_REGION *pRegion = GetRegionPtr(pSynth, regionIndex);
1833 VMStartVoice(pVoiceMgr, pSynth, channel, note, velocity, regionIndex);
1842 regionIndex++;
2527 if (pSynth->channels[channel].regionIndex & FLAG_RGN_IDX_FM_SYNTH)
2551 if (pSynth->channels[channel].regionIndex & FLAG_RGN_IDX_FM_SYNTH)
2584 EAS_U16 regionIndex;
2595 regionIndex = pEAS->pBanks[i].regionIndex[programNum];
2596 if (regionIndex != INVALID_REGION_INDEX)
2598 *pRegionIndex = regionIndex;
2613 *pRegionIndex = p->regionIndex;
2653 *pRegionIndex = p->regionIndex;
2691 EAS_U16 regionIndex;
2713 regionIndex = DEFAULT_REGION_INDEX;
2732 if (VMFindDLSProgram(pSynth->pDLS, bank, program, &regionIndex) != EAS_SUCCESS)
2739 if (VMFindProgram(pSynth->pEAS, bank, program, &regionIndex) != EAS_SUCCESS)
2748 if (VMFindProgram(pSynth->pEAS, bank, program, &regionIndex) != EAS_SUCCESS)
2752 if (VMFindProgram(pSynth->pEAS, bank, 0, &regionIndex) != EAS_SUCCESS)
2761 pChannel->regionIndex = regionIndex;