Lines Matching refs:nTemp
210 EAS_I32 nTemp; in FM_CalculatePan() local
233 nTemp = EG1_ONE + FMUL_15x15(COEFF_PAN_G2, nNetAngle); in FM_CalculatePan()
234 nTemp = COEFF_PAN_G0 + FMUL_15x15(nTemp, nNetAngle); in FM_CalculatePan()
236 if (nTemp > SYNTH_FULL_SCALE_EG1_GAIN) in FM_CalculatePan()
237 nTemp = SYNTH_FULL_SCALE_EG1_GAIN; in FM_CalculatePan()
238 else if (nTemp < 0) in FM_CalculatePan()
239 nTemp = 0; in FM_CalculatePan()
241 *pGainRight = (EAS_U16) nTemp; in FM_CalculatePan()
244 nTemp = -EG1_ONE + FMUL_15x15(COEFF_PAN_G2, nNetAngle); in FM_CalculatePan()
245 nTemp = COEFF_PAN_G0 + FMUL_15x15(nTemp, nNetAngle); in FM_CalculatePan()
247 if (nTemp > SYNTH_FULL_SCALE_EG1_GAIN) in FM_CalculatePan()
248 nTemp = SYNTH_FULL_SCALE_EG1_GAIN; in FM_CalculatePan()
249 else if (nTemp < 0) in FM_CalculatePan()
250 nTemp = 0; in FM_CalculatePan()
252 *pGainLeft = (EAS_U16) nTemp; in FM_CalculatePan()
741 EAS_I32 nTemp; in FM_SynthMixVoice() local
755 nTemp = *pInputBuffer++; in FM_SynthMixVoice()
761 nTemp = ((EAS_I32) nTemp * (nGain >> 16)) >> FM_GAIN_SHIFT; in FM_SynthMixVoice()
766 nTemp = nTemp >> FM_STEREO_PRE_GAIN_SHIFT; in FM_SynthMixVoice()
767 nTemp2 = (nTemp * p->gainLeft) >> FM_STEREO_POST_GAIN_SHIFT; in FM_SynthMixVoice()
769 nTemp2 = (nTemp * p->gainRight) >> FM_STEREO_POST_GAIN_SHIFT; in FM_SynthMixVoice()
774 nTemp = ((EAS_I32) nTemp * (nGain >> 16)) >> FM_MONO_GAIN_SHIFT; in FM_SynthMixVoice()
775 *pBuffer++ += nTemp; in FM_SynthMixVoice()