Lines Matching full:gain
56 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain);
130 /* left and right gain values are needed only if stereo output */
360 pVoice->gain = 0;
418 wtConfig.gain = pVoice->gain;
523 intFrame.prevGain = pVoice->gain;
540 /* update the gain */
541 intFrame.frame.gainTarget = WT_UpdateGain(pVoice, pWTVoice, pArt, pChannel, pWTRegion->gain);
586 /* if the update interval has elapsed, then force the current gain to the next
587 * gain since we never actually reach the next gain when ramping -- we just get
588 * very close to the target gain.
590 pVoice->gain = (EAS_I16) intFrame.frame.gainTarget;
659 * - the given channel's static gain and static pitch are updated
725 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain)
741 /* region gain is fixed as part of the articulation */
742 temp = MULT_EG1_EG1(temp, gain);
744 /* include the channel gain */
747 /* calculate LFO gain using an approximation for 10^x */
751 /* convert from a dB-like value to linear gain */
755 /* calculate the voice's gain */