Lines Matching refs:currentPriority
2011 EAS_I32 currentPriority; in VMStealVoice() local
2049 currentPriority = 128 - pCurrVoice->nextVelocity; in VMStealVoice()
2055 currentPriority = (EAS_I32) pCurrVoice->age << NOTE_AGE_STEAL_WEIGHT; in VMStealVoice()
2059 currentPriority += ((32768 >> (12 - NOTE_GAIN_STEAL_WEIGHT)) + 256) - in VMStealVoice()
2069 …currentPriority += (pSynth->poolCount[pChannel->pool] -pSynth->poolAlloc[pChannel->pool] + 1) << C… in VMStealVoice()
2072 currentPriority += (EAS_I32)(pChannel->pool << CHANNEL_PRIORITY_STEAL_WEIGHT); in VMStealVoice()
2077 currentPriority += NOTE_MATCH_PENALTY; in VMStealVoice()
2080 if (currentPriority >= bestPriority) in VMStealVoice()
2082 bestPriority = currentPriority; in VMStealVoice()
3077 EAS_I32 currentPriority, bestPriority; in VMSetPolyphony() local
3094 currentPriority = 128 - pVoice->nextVelocity; in VMSetPolyphony()
3097 …currentPriority += pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool << CHANNEL_PRIORITY_STE… in VMSetPolyphony()
3102 currentPriority = (EAS_I32) pVoice->age << NOTE_AGE_STEAL_WEIGHT; in VMSetPolyphony()
3106 currentPriority += ((32768 >> (12 - NOTE_GAIN_STEAL_WEIGHT)) + 256) - in VMSetPolyphony()
3110 …currentPriority += pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool << CHANNEL_PRIORITY_STE… in VMSetPolyphony()
3114 if (currentPriority > bestPriority) in VMSetPolyphony()
3116 bestPriority = currentPriority; in VMSetPolyphony()