Lines Matching refs:temp

762     int32_t temp;  in Reverb_getParameter()  local
825 temp = (pReverb->m_nRoomLpfFwd << 15) in Reverb_getParameter()
827 *pValue16 = Effects_Linear16ToMillibels(temp); in Reverb_getParameter()
829 …M_ROOM_LEVEL %d, gain %d, m_nRoomLpfFwd %d, m_nRoomLpfFbk %d", *pValue16, temp, pReverb->m_nRoomLp… in Reverb_getParameter()
843 temp = MULT_EG1_EG1(pReverb->m_nRoomLpfFbk, pReverb->m_nRoomLpfFbk); in Reverb_getParameter()
844 ALOGV("get REVERB_PARAM_ROOM_HF_LEVEL, a1^2 %d", temp); in Reverb_getParameter()
848 temp = 32767 + temp - temp2; in Reverb_getParameter()
849 ALOGV("get REVERB_PARAM_ROOM_HF_LEVEL, a1^2 + 2 Cos a1 + 1 %d", temp); in Reverb_getParameter()
850 temp = Effects_Sqrt(temp) * 181; in Reverb_getParameter()
851 ALOGV("get REVERB_PARAM_ROOM_HF_LEVEL, SQRT(a1^2 + 2 Cos a1 + 1) %d", temp); in Reverb_getParameter()
852 temp = ((32767 - pReverb->m_nRoomLpfFbk) << 15) / temp; in Reverb_getParameter()
854 …REVERB_PARAM_ROOM_HF_LEVEL, gain %d, m_nRoomLpfFwd %d, m_nRoomLpfFbk %d", temp, pReverb->m_nRoomLp… in Reverb_getParameter()
856 *pValue16 = Effects_Linear16ToMillibels(temp); in Reverb_getParameter()
866 temp = (pReverb->m_nRvbLpfFwd << 15) / (32767 - pReverb->m_nRvbLpfFbk); in Reverb_getParameter()
867 temp = Effects_Linear16ToMillibels(temp); in Reverb_getParameter()
870 temp = (-6000 * pReverb->m_nLateDelay) / temp; in Reverb_getParameter()
873 *pValue32 = (temp * 1000) / pReverb->m_nSamplingRate; in Reverb_getParameter()
875 ALOGV("get REVERB_PARAM_DECAY_TIME, samples %d, ms %d", temp, *pValue32); in Reverb_getParameter()
896 temp = MULT_EG1_EG1(pReverb->m_nRvbLpfFbk, pReverb->m_nRvbLpfFbk); in Reverb_getParameter()
899 temp = 32767 + temp - temp2; in Reverb_getParameter()
900 temp = Effects_Sqrt(temp) * 181; in Reverb_getParameter()
901 temp = (pReverb->m_nRvbLpfFwd << 15) / temp; in Reverb_getParameter()
906 temp = Effects_Linear16ToMillibels(temp); in Reverb_getParameter()
908 … ALOGV("get REVERB_PARAM_DECAY_HF_RATIO, gain 5KHz %d mB, gain DC %d mB", temp, temp2); in Reverb_getParameter()
910 if (temp == 0) in Reverb_getParameter()
911 temp = 1; in Reverb_getParameter()
912 temp = (int16_t) ((1000 * temp2) / temp); in Reverb_getParameter()
913 if (temp > 1000) in Reverb_getParameter()
914 temp = 1000; in Reverb_getParameter()
916 *pValue16 = temp; in Reverb_getParameter()
973 temp = (int16_t) ((1000 * (pReverb->m_sAp0.m_nApGain - AP0_GAIN_BASE)) in Reverb_getParameter()
976 if (temp < 0) in Reverb_getParameter()
977 temp = 0; in Reverb_getParameter()
978 if (temp > 1000) in Reverb_getParameter()
979 temp = 1000; in Reverb_getParameter()
981 *pValue16 = temp; in Reverb_getParameter()
992 temp = ((pReverb->m_sAp0.m_zApOut - pReverb->m_sAp0.m_zApIn) << 16) in Reverb_getParameter()
995 temp = (int16_t) ((1000 * (temp - AP0_TIME_BASE)) / AP0_TIME_RANGE); in Reverb_getParameter()
997 if (temp < 0) in Reverb_getParameter()
998 temp = 0; in Reverb_getParameter()
999 if (temp > 1000) in Reverb_getParameter()
1000 temp = 1000; in Reverb_getParameter()
1002 *pValue16 = temp; in Reverb_getParameter()
1045 int32_t temp; in Reverb_setParameter() local
1126 temp = Effects_MillibelsToLinear16(value16); in Reverb_setParameter()
1129 = MULT_EG1_EG1(temp, (32767 - pReverb->m_nRoomLpfFbk)); in Reverb_setParameter()
1131 …ALOGV("REVERB_PARAM_ROOM_LEVEL, gain %d, new m_nRoomLpfFwd %d, m_nRoomLpfFbk %d", temp, pReverb->m… in Reverb_setParameter()
1158 temp = Effects_MillibelsToLinear16(value16); in Reverb_setParameter()
1159 ALOGV("REVERB_PARAM_ROOM_HF_LEVEL, HF gain %d", temp); in Reverb_setParameter()
1160 temp = (1 << 30) / temp; in Reverb_setParameter()
1161 ALOGV("REVERB_PARAM_ROOM_HF_LEVEL, 1/ HF gain %d", temp); in Reverb_setParameter()
1162 dG2 = (int32_t) (((int64_t) temp * (int64_t) temp) >> 15); in Reverb_setParameter()
1205 temp = (-6000 * averageDelay) / value32; in Reverb_setParameter()
1206 …LOGV("REVERB_PARAM_DECAY_TIME, delay smps %d, DT smps %d, gain mB %d",averageDelay, value32, temp); in Reverb_setParameter()
1207 if (temp < -4000 || temp > -100) in Reverb_setParameter()
1212 temp -= Effects_Linear16ToMillibels(pReverb->m_nLateGain) + 900; in Reverb_setParameter()
1213 temp = Effects_MillibelsToLinear16(temp); in Reverb_setParameter()
1217 = MULT_EG1_EG1(temp, (32767 - pReverb->m_nRvbLpfFbk)); in Reverb_setParameter()
1219 …TIME, gain %d, new m_nRvbLpfFwd %d, old m_nRvbLpfFbk %d, reverb gain %d", temp, pReverb->m_nRvbLpf… in Reverb_setParameter()
1242 temp = Effects_Linear16ToMillibels(temp2); in Reverb_setParameter()
1246 … ALOGV("REVERB_PARAM_DECAY_HF_RATIO, DC gain %d, DC gain mB %d, 1000/R %d", temp2, temp, value32); in Reverb_setParameter()
1248 temp = (int32_t) (((int64_t) temp * (int64_t) value32) >> 15); in Reverb_setParameter()
1250 if (temp < -4000) { in Reverb_setParameter()
1251 ALOGV("REVERB_PARAM_DECAY_HF_RATIO HF gain overflow %d mB", temp); in Reverb_setParameter()
1252 temp = -4000; in Reverb_setParameter()
1255 temp = Effects_MillibelsToLinear16(temp); in Reverb_setParameter()
1256 ALOGV("REVERB_PARAM_DECAY_HF_RATIO, HF gain %d", temp); in Reverb_setParameter()
1258 temp = (temp2 << 15) / temp; in Reverb_setParameter()
1259 dG2 = (int32_t) (((int64_t) temp * (int64_t) temp) >> 15); in Reverb_setParameter()
1311 temp = (value32 * 65536) / 1000; in Reverb_setParameter()
1312 if (temp < 0 || temp > MAX_EARLY_TIME) in Reverb_setParameter()
1317 temp = (temp * pReverb->m_nSamplingRate) >> 16; in Reverb_setParameter()
1319 temp2 = temp + (((int32_t) pPreset->m_sEarlyL.m_zDelay[i] in Reverb_setParameter()
1324 temp2 = temp + (((int32_t) pPreset->m_sEarlyR.m_zDelay[i] in Reverb_setParameter()
1330 pReverb->m_nEarlyDelay = temp; in Reverb_setParameter()
1357 temp = (value32 * 65536) / 1000; in Reverb_setParameter()
1358 if (temp < 0 || temp > MAX_DELAY_TIME) in Reverb_setParameter()
1363 temp = (temp * pReverb->m_nSamplingRate) >> 16; in Reverb_setParameter()
1364 if ((temp + pReverb->m_nMaxExcursion) > maxSamples) { in Reverb_setParameter()
1365 temp = maxSamples - pReverb->m_nMaxExcursion; in Reverb_setParameter()
1367 if (temp < pReverb->m_nMaxExcursion) { in Reverb_setParameter()
1368 temp = pReverb->m_nMaxExcursion; in Reverb_setParameter()
1371 temp -= pReverb->m_nLateDelay; in Reverb_setParameter()
1372 pReverb->m_nDelay0Out += temp; in Reverb_setParameter()
1373 pReverb->m_nDelay1Out += temp; in Reverb_setParameter()
1374 pReverb->m_nLateDelay += temp; in Reverb_setParameter()
1410 temp = AP0_TIME_BASE + ((int32_t) value16 * AP0_TIME_RANGE) / 1000; in Reverb_setParameter()
1412 temp = (temp * pReverb->m_nSamplingRate) >> 16; in Reverb_setParameter()
1413 if (temp > maxSamples) in Reverb_setParameter()
1414 temp = maxSamples; in Reverb_setParameter()
1415 pReverb->m_sAp0.m_zApOut = (uint16_t) (pReverb->m_sAp0.m_zApIn + temp); in Reverb_setParameter()
1417 ALOGV("REVERB_PARAM_DENSITY, Ap0 delay smps %d", temp); in Reverb_setParameter()
1419 temp = AP1_TIME_BASE + ((int32_t) value16 * AP1_TIME_RANGE) / 1000; in Reverb_setParameter()
1421 temp = (temp * pReverb->m_nSamplingRate) >> 16; in Reverb_setParameter()
1422 if (temp > maxSamples) in Reverb_setParameter()
1423 temp = maxSamples; in Reverb_setParameter()
1424 pReverb->m_sAp1.m_zApOut = (uint16_t) (pReverb->m_sAp1.m_zApIn + temp); in Reverb_setParameter()
1426 ALOGV("Ap1 delay smps %d", temp); in Reverb_setParameter()
1905 int temp; in ReverbUpdateRoom() local
1946 temp = earlyDelay + (((int) pPreset->m_sEarlyL.m_zDelay[i] in ReverbUpdateRoom()
1948 if (temp > maxSamples) in ReverbUpdateRoom()
1949 temp = maxSamples; in ReverbUpdateRoom()
1950 pReverb->m_sEarlyL.m_zDelay[i] = pReverb->m_nEarly0in + temp; in ReverbUpdateRoom()
1952 temp = earlyDelay + (((int) pPreset->m_sEarlyR.m_zDelay[i] in ReverbUpdateRoom()
1954 if (temp > maxSamples) in ReverbUpdateRoom()
1955 temp = maxSamples; in ReverbUpdateRoom()
1956 pReverb->m_sEarlyR.m_zDelay[i] = pReverb->m_nEarly1in + temp; in ReverbUpdateRoom()
1963 temp = (pPreset->m_nLateDelay * pReverb->m_nSamplingRate) >> 16; in ReverbUpdateRoom()
1964 if ((temp + pReverb->m_nMaxExcursion) > maxSamples) { in ReverbUpdateRoom()
1965 temp = maxSamples - pReverb->m_nMaxExcursion; in ReverbUpdateRoom()
1967 temp -= pReverb->m_nLateDelay; in ReverbUpdateRoom()
1968 pReverb->m_nDelay0Out += temp; in ReverbUpdateRoom()
1969 pReverb->m_nDelay1Out += temp; in ReverbUpdateRoom()
1970 pReverb->m_nLateDelay += temp; in ReverbUpdateRoom()
1974 temp = pPreset->m_nAp0_ApOut; in ReverbUpdateRoom()
1976 temp = (temp * pReverb->m_nSamplingRate) >> 16; in ReverbUpdateRoom()
1977 if (temp > maxSamples) in ReverbUpdateRoom()
1978 temp = maxSamples; in ReverbUpdateRoom()
1979 pReverb->m_sAp0.m_zApOut = (uint16_t) (pReverb->m_sAp0.m_zApIn + temp); in ReverbUpdateRoom()
1982 temp = pPreset->m_nAp1_ApOut; in ReverbUpdateRoom()
1984 temp = (temp * pReverb->m_nSamplingRate) >> 16; in ReverbUpdateRoom()
1985 if (temp > maxSamples) in ReverbUpdateRoom()
1986 temp = maxSamples; in ReverbUpdateRoom()
1987 pReverb->m_sAp1.m_zApOut = (uint16_t) (pReverb->m_sAp1.m_zApIn + temp); in ReverbUpdateRoom()
1992 temp = pPreset->m_nXfadeInterval; in ReverbUpdateRoom()
1994 temp = (temp * pReverb->m_nSamplingRate) >> 16; in ReverbUpdateRoom()
1995 pReverb->m_nXfadeInterval = (uint16_t) temp; in ReverbUpdateRoom()