Lines Matching defs:pRegion
313 const S_WT_REGION *pRegion;
342 pRegion = &(pSynth->pEAS->pWTRegions[regionIndex]);
343 pWTVoice->artIndex = pRegion->artIndex;
385 if (pRegion->region.keyGroupAndFlags & REGION_FLAG_USE_WAVE_GENERATOR)
398 pWTVoice->phaseAccum = (EAS_U32) pSynth->pEAS->pSamples + pSynth->pEAS->pSampleOffsets[pRegion->waveIndex];
400 pWTVoice->phaseAccum = pSynth->pEAS->pSampleOffsets[pRegion->waveIndex];
402 pWTVoice->phaseAccum = (EAS_U32) pSynth->pEAS->pSamples + pSynth->pEAS->pSampleOffsets[pRegion->waveIndex];
405 if (pRegion->region.keyGroupAndFlags & REGION_FLAG_IS_LOOPED)
407 pWTVoice->loopStart = pWTVoice->phaseAccum + pRegion->loopStart;
408 pWTVoice->loopEnd = pWTVoice->phaseAccum + pRegion->loopEnd - 1;
411 pWTVoice->loopStart = pWTVoice->loopEnd = pWTVoice->phaseAccum + pSynth->pEAS->pSampleLen[pRegion->waveIndex] - 1;