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;
519 intFrame.prevGain = pVoice->gain;
536 /* update the gain */
537 intFrame.frame.gainTarget = WT_UpdateGain(pVoice, pWTVoice, pArt, pChannel, pWTRegion->gain);
580 /* if the update interval has elapsed, then force the current gain to the next
581 * gain since we never actually reach the next gain when ramping -- we just get
582 * very close to the target gain.
584 pVoice->gain = (EAS_I16) intFrame.frame.gainTarget;
653 * - the given channel's static gain and static pitch are updated
719 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain)
735 /* region gain is fixed as part of the articulation */
736 temp = MULT_EG1_EG1(temp, gain);
738 /* include the channel gain */
741 /* calculate LFO gain using an approximation for 10^x */
745 /* convert from a dB-like value to linear gain */
749 /* calculate the voice's gain */