Warning: you were redirected to the latest documentation corresponding to your major release ( 2023.1.9.8628 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Go to the documentation of this file.
27 #ifndef _AK_VECTORVALUERAMP_H_
28 #define _AK_VECTORVALUERAMP_H_
40 const AkReal32 fIncrement = (in_fStopValue-in_fStartValue)/in_uNumFrames;
41 const AkReal32 f4xInc = 4.f*fIncrement;
44 fVal[0] = in_fStartValue;
45 fVal[1] = fVal[0] + fIncrement;
46 fVal[2] = fVal[1] + fIncrement;
47 fVal[3] = fVal[2] + fIncrement;
64 #ifdef AKSIMD_V2F32_SUPPORTED
67 class CAkVectorValueRampV2
73 const AkReal32 fIncrement = (in_fStopValue-in_fStartValue)/in_uNumFrames;
74 const AkReal32 f2xInc = 2.f*fIncrement;
76 AKSIMD_BUILD_V2F32(
const AKSIMD_V2F32 vStartOffset, 0.f, fIncrement );
79 vValueRamp = l_vValueRamp;
98 #endif //_AK_VECTORVALUERAMP_H_
CAkVectorValueRampV4 CAkVectorValueRamp
AkForceInline AKSIMD_V4F32 Setup(AkReal32 in_fStartValue, AkReal32 in_fStopValue, AkUInt32 in_uNumFrames)
float AkReal32
32-bit floating point
uint32_t AkUInt32
Unsigned 32-bit integer.
AkForceInline AKSIMD_V4F32 Tick()
Tell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise