Lines Matching refs:envValue
942 pState->envValue = 0;
1004 pState->envValue = (32768<<7);
1016 pState->envValue = (2<<7);
1027 //printf("env attack, env value = %d, env scale = %d\n",pState->envValue>>7,pState->envScale);
1029 pState->envValue = pState->envValue + (pState->envScale << 7);
1031 if (pState->envValue >= (32768<<7))
1033 pState->envValue = (32768<<7);
1041 //printf("env decay, env value = %d, env scale = %d\n",pState->envValue>>7,pState->envScale);
1043 pState->envValue = (pState->envValue * pState->envScale)>>9;
1052 if (pState->envValue <= utemp)
1061 //printf("env sustain, env value = %d, env scale = %d\n",pState->envValue>>7,pState->envScale);
1063 pState->envValue = (pState->envValue * pState->envScale)>>9;
1065 if (pState->envValue <= (2<<7))
1074 //printf("env release, env value = %d, env scale = %d\n",pState->envValue>>7,pState->envScale);
1076 pState->envValue = (pState->envValue * pState->envScale)>>9;
1078 if (pState->envValue <= (2<<7))
1092 //pState->gainLeft = (EAS_U16)((pState->gainLeft * (pState->envValue>>7))>>15);
1093 envValue>>7))>>15);
1113 EAS_I32 gain = FMUL_15x15(pState->envValue >> 7, pState->volume);