Home
last modified time | relevance | path

Searched refs:pOper (Results 1 – 2 of 2) sorted by relevance

/external/sonivox/arm-fm-22k/lib_src/
Deas_fmsynth.c625 static EAS_BOOL FM_UpdateEG (S_SYNTH_VOICE *pVoice, S_OPERATOR *pOper, const S_FM_OPER *pOperData, … in FM_UpdateEG() argument
634 switch (pOper->envState) in FM_UpdateEG()
640 temp = pOper->envGain + fmAttackTable[pOperData->attackDecay >> 4]; in FM_UpdateEG()
645 pOper->envGain = 0x7fff; in FM_UpdateEG()
646 pOper->envState = eFMEnvelopeStateDecay; in FM_UpdateEG()
649 pOper->envGain = (EAS_U16) temp; in FM_UpdateEG()
655 pOper->envGain = (EAS_U16) FMUL_15x15(pOper->envGain, pOper->envRate); in FM_UpdateEG()
659 if (pOper->envGain <= (EAS_U16) temp) in FM_UpdateEG()
664 pOper->envRate = FM_CalcEGRate( in FM_UpdateEG()
668 pOper->envState = eFMEnvelopeStateRelease; in FM_UpdateEG()
[all …]
/external/sonivox/arm-hybrid-22k/lib_src/
Deas_fmsynth.c625 static EAS_BOOL FM_UpdateEG (S_SYNTH_VOICE *pVoice, S_OPERATOR *pOper, const S_FM_OPER *pOperData, … in FM_UpdateEG() argument
634 switch (pOper->envState) in FM_UpdateEG()
640 temp = pOper->envGain + fmAttackTable[pOperData->attackDecay >> 4]; in FM_UpdateEG()
645 pOper->envGain = 0x7fff; in FM_UpdateEG()
646 pOper->envState = eFMEnvelopeStateDecay; in FM_UpdateEG()
649 pOper->envGain = (EAS_U16) temp; in FM_UpdateEG()
655 pOper->envGain = (EAS_U16) FMUL_15x15(pOper->envGain, pOper->envRate); in FM_UpdateEG()
659 if (pOper->envGain <= (EAS_U16) temp) in FM_UpdateEG()
664 pOper->envRate = FM_CalcEGRate( in FM_UpdateEG()
668 pOper->envState = eFMEnvelopeStateRelease; in FM_UpdateEG()
[all …]