Home | History | Annotate | Download | only in lib_src

Lines Matching refs:currentPriority

2022     EAS_I32 currentPriority;
2060 currentPriority = 128 - pCurrVoice->nextVelocity;
2066 currentPriority = (EAS_I32) pCurrVoice->age << NOTE_AGE_STEAL_WEIGHT;
2070 currentPriority += ((32768 >> (12 - NOTE_GAIN_STEAL_WEIGHT)) + 256) -
2080 currentPriority += (pSynth->poolCount[pChannel->pool] -pSynth->poolAlloc[pChannel->pool] + 1) << CHANNEL_POLY_STEAL_WEIGHT;
2083 currentPriority += (EAS_I32)(pChannel->pool << CHANNEL_PRIORITY_STEAL_WEIGHT);
2088 currentPriority += NOTE_MATCH_PENALTY;
2091 if (currentPriority >= bestPriority)
2093 bestPriority = currentPriority;
3118 EAS_I32 currentPriority, bestPriority;
3138 currentPriority = 128 - pVoice->nextVelocity;
3141 currentPriority += pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool << CHANNEL_PRIORITY_STEAL_WEIGHT;
3146 currentPriority = (EAS_I32) pVoice->age << NOTE_AGE_STEAL_WEIGHT;
3150 currentPriority += ((32768 >> (12 - NOTE_GAIN_STEAL_WEIGHT)) + 256) -
3154 currentPriority += pSynth->channels[GET_CHANNEL(pVoice->channel)].pool << CHANNEL_PRIORITY_STEAL_WEIGHT;
3158 currentPriority += pSynth->priority << SYNTH_PRIORITY_WEIGHT;
3161 if (currentPriority > bestPriority)
3163 bestPriority = currentPriority;
3288 EAS_I32 currentPriority, bestPriority;
3305 currentPriority = 128 - pVoice->nextVelocity;
3308 currentPriority += pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool << CHANNEL_PRIORITY_STEAL_WEIGHT;
3313 currentPriority = (EAS_I32) pVoice->age << NOTE_AGE_STEAL_WEIGHT;
3317 currentPriority += ((32768 >> (12 - NOTE_GAIN_STEAL_WEIGHT)) + 256) -
3321 currentPriority += pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool << CHANNEL_PRIORITY_STEAL_WEIGHT;
3325 if (currentPriority > bestPriority)
3327 bestPriority = currentPriority;