Lines Matching refs:gain
185 …Voice, const S_DLS_ARTICULATION *pDLSArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain, EAS_U8 velocity) in DLS_UpdateGain() argument
201 gain += FMUL_15x15(temp, pWTVoice->modLFO.lfoValue); in DLS_UpdateGain()
202 if (gain > 0) in DLS_UpdateGain()
203 gain = 0; in DLS_UpdateGain()
208 gain = (DLS_GAIN_FACTOR * gain) >> DLS_GAIN_SHIFT; in DLS_UpdateGain()
211 gain += (pWTVoice->eg1Value - 32767) >> 1; in DLS_UpdateGain()
212 gain = EAS_LogToLinear16(gain); in DLS_UpdateGain()
214 gain = EAS_LogToLinear16(gain); in DLS_UpdateGain()
216 gain = FMUL_15x15(gain, temp); in DLS_UpdateGain()
221 gain = (DLS_GAIN_FACTOR * gain) >> DLS_GAIN_SHIFT; in DLS_UpdateGain()
222 gain = EAS_LogToLinear16(gain); in DLS_UpdateGain()
223 gain = FMUL_15x15(gain, pWTVoice->eg1Value); in DLS_UpdateGain()
227 gain = FMUL_15x15(gain, pChannel->staticGain); in DLS_UpdateGain()
234 gain = FMUL_15x15(gain, temp); in DLS_UpdateGain()
238 return gain; in DLS_UpdateGain()
337 …pVoice->gain = (EAS_I16) DLS_UpdateGain(pWTVoice, pDLSArt, pChannel, pDLSRegion->wtRegion.gain, pV… in DLS_StartVoice()
414 …nTarget = DLS_UpdateGain(pWTVoice, pDLSArt, pChannel, pDLSRegion->wtRegion.gain, pVoice->velocity); in DLS_UpdateVoice()
415 intFrame.prevGain = pVoice->gain; in DLS_UpdateVoice()
439 pVoice->gain = (EAS_I16) intFrame.frame.gainTarget; in DLS_UpdateVoice()