Lines Matching refs:oper
164 if ((pRegion->oper[operIndex].gain & 0xfc) == 0) in FM_SynthIsOutputOperator()
269 pFMVoice->oper[operIndex].envState = eFMEnvelopeStateRelease; in FM_ReleaseVoice()
272 pFMVoice->oper[operIndex].envRate = FM_CalcEGRate( in FM_ReleaseVoice()
274 fmReleaseTable[pRegion->oper[operIndex].velocityRelease & 0x0f], in FM_ReleaseVoice()
275 fmScaleTable[pRegion->oper[operIndex].egKeyScale >> 4]); in FM_ReleaseVoice()
305 pFMVoice->oper[0].envState = eFMEnvelopeStateMuted; in FM_MuteVoice()
306 pFMVoice->oper[1].envState = eFMEnvelopeStateMuted; in FM_MuteVoice()
307 pFMVoice->oper[2].envState = eFMEnvelopeStateMuted; in FM_MuteVoice()
308 pFMVoice->oper[3].envState = eFMEnvelopeStateMuted; in FM_MuteVoice()
339 if (((pRegion->oper[operIndex].gain & 0xfc) == 0) || in FM_SustainPedal()
340 (pFMVoice->oper[operIndex].envGain == 0)) in FM_SustainPedal()
346 …if (pFMVoice->oper[operIndex].envGain >= ((EAS_U16) (pRegion->oper[operIndex].sustain & 0xfc) << 7… in FM_SustainPedal()
350 pFMVoice->oper[operIndex].envState = eFMEnvelopeStateDecay; in FM_SustainPedal()
352 pFMVoice->oper[operIndex].envRate = FM_CalcEGRate( in FM_SustainPedal()
354 fmDecayTable[pRegion->oper[operIndex].attackDecay & 0x0f], in FM_SustainPedal()
355 fmScaleTable[pRegion->oper[operIndex].egKeyScale >> 4]); in FM_SustainPedal()
444 …pFMVoice->oper[operIndex].outputGain = EAS_LogToLinear16(((EAS_I16) (pRegion->oper[operIndex].gain… in FM_StartVoice()
448 if (pRegion->oper[operIndex].flags & FM_OPER_FLAG_LINEAR_VELOCITY) in FM_StartVoice()
455 temp = (temp * (EAS_I32)(pRegion->oper[operIndex].velocityRelease & 0xf0)) >> 7; in FM_StartVoice()
458 …) pVoice->note - KEY_SCALE_PIVOT_POINT) * (EAS_I32) fmScaleTable[pRegion->oper[operIndex].egKeySca… in FM_StartVoice()
465 pFMVoice->oper[operIndex].baseGain = (EAS_I16) EAS_LogToLinear16(temp); in FM_StartVoice()
468 pFMVoice->oper[operIndex].envRate = FM_CalcEGRate( in FM_StartVoice()
470 fmDecayTable[pRegion->oper[operIndex].attackDecay & 0x0f], in FM_StartVoice()
471 fmScaleTable[pRegion->oper[operIndex].egKeyScale >> 4]); in FM_StartVoice()
474 if ((pRegion->oper[operIndex].attackDecay & 0xf0) == 0xf0) in FM_StartVoice()
478 pFMVoice->oper[operIndex].envGain = 0x7fff; in FM_StartVoice()
481 pFMVoice->oper[operIndex].envState = eFMEnvelopeStateDecay; in FM_StartVoice()
487 pFMVoice->oper[operIndex].envGain = 0; in FM_StartVoice()
488 pFMVoice->oper[operIndex].envState = eFMEnvelopeStateAttack; in FM_StartVoice()
757 temp = pRegion->oper[operIndex].tuning + in FM_UpdateDynamic()
761 if ((pRegion->oper[operIndex].flags & FM_OPER_FLAG_NO_VIBRATO) == 0) in FM_UpdateDynamic()
765 if (pRegion->oper[operIndex].flags & FM_OPER_FLAG_MONOTONE) in FM_UpdateDynamic()
769 pFMVoice->oper[operIndex].pitch = (EAS_I16) temp; in FM_UpdateDynamic()
772 …bTemp = FM_UpdateEG(pVoice, &pFMVoice->oper[operIndex], &pRegion->oper[operIndex], pRegion->region… in FM_UpdateDynamic()
807 EAS_INT oper; in FM_UpdateVoice() local
839 for (oper = 0; oper < 4; oper++) in FM_UpdateVoice()
842 …vCfg.gain[oper] = (EAS_U16) FMUL_15x15(pFMVoice->oper[oper].baseGain, pFMVoice->oper[oper].envGain… in FM_UpdateVoice()
843 vCfg.outputGain[oper] = pFMVoice->oper[oper].outputGain; in FM_UpdateVoice()
846 if (pRegion->oper[oper].flags & FM_OPER_FLAG_NOISE) in FM_UpdateVoice()
847 vCfg.flags |= (EAS_U8) (FLAG_FM_ENG_VOICE_OP1_NOISE << oper); in FM_UpdateVoice()
888 for (oper = 0; oper < 4; oper++) in FM_UpdateVoice()
890 …vFrame.gain[oper] = (EAS_U16) FMUL_15x15(pFMVoice->oper[oper].baseGain, pFMVoice->oper[oper].envGa… in FM_UpdateVoice()
891 vFrame.pitch[oper] = pFMVoice->oper[oper].pitch; in FM_UpdateVoice()
894 if (FM_SynthIsOutputOperator(pRegion, oper)) in FM_UpdateVoice()
895 pVoice->gain = max(pVoice->gain, (EAS_I16) vFrame.gain[oper]); in FM_UpdateVoice()