浏览该文件的文档.
32 #ifndef _AK_VALUERAMP_H_
33 #define _AK_VALUERAMP_H_
54 m_fStepIncrement( 0.f ),
75 m_fStepIncrement = fStepIncrement;
76 m_fCurrent = fInitVal;
87 AkReal32 fDiff = m_fTarget - m_fCurrent;
88 m_uRampLength =
static_cast<AkUInt32>( fabs(fDiff) / m_fStepIncrement );
89 m_fInc = fDiff > 0 ? m_fStepIncrement : -m_fStepIncrement;
96 if ( m_uRampCount >= m_uRampLength )
97 m_fCurrent = m_fTarget;
101 m_fCurrent += m_fInc;
123 m_fCurrent = m_fTarget;
124 m_uRampCount = m_uRampLength;
138 #endif //_AK_VALUERAMP_H_
Definition of data structures for AkAudioObject
void StopRamp()
The ramp is no longer necessary; set to target
void SetCurrent(AkReal32 in_fCurrent)
Set the current interpolated value.
AkForceInline AkReal32 Tick()
CAkValueRamp()
Constructor method.
void RampSetup(AkReal32 fStepIncrement, AkReal32 fInitVal)
Initial parameter interpolation ramp setup.
float AkReal32
32-bit floating point
~CAkValueRamp()
Destructor method.
#define AKASSERT(Condition)
AkForceInline void SetTarget(AkReal32 fTarget)
Set the ramp's target value.
uint32_t AkUInt32
Unsigned 32-bit integer
void SetRampCount(AkUInt32 in_uRampCount)
Set the current interpolation frame count.
介绍一下自己的项目。我们会竭力为您提供帮助。
来注册自己的项目,我们帮您快速入门,不带任何附加条件!
开始 Wwise 之旅