Esempio n. 1
0
CCompandor::CCompandor( IN const CAUDIO_S32_t samplespersecond, 
						IN const CAUDIO_S32_t lengthofchannel, 
						IN AUDIO_MIX_INFO *mChannelInfo)
	: m_bIsInitial(false)
	, m_nSamplesPerSecond(samplespersecond)
	, m_nSize(lengthofchannel)
	, m_nAttack(0)
	, m_nRelease(0)
	, m_nReleaseTimeSample(0)
	, m_nAttackTimeSample(0)
	, m_lIndexOfDelayMemory(0L)
	, m_lIndexOfSlideWindowMemory(0L)
	, m_fEnergy(0.f)
	, m_fEnvelope(0.f)
	, m_fSmoothGainOfCompandor(0.f)
	, m_fPastGainOfCompandor(0.f)
	, m_fDelta(0.f)
	, m_pDelayMemory(NULL)
	, m_fSlideWindowMemory(NULL)
	, m_pChannelInfo(mChannelInfo)
	, m_fSliceWindowValue(0)
{
	//initial 
	__Init();
}
Esempio n. 2
0
STATUS_CODE CTemperature::Init( )
{
	STATUS_CODE sc = __Init( );
	if (STATUS_CODE::STATUS_CODE_NO_ERROR == sc)
		__InitProcessorsInfo( );
	return sc;
}