版本

    其他文档

menu_open
AKRESULT __cdecl AK::SoundEngine::ResetRTPCValue ( const char *  in_pszRtpcName,
AkGameObjectID  in_gameObjectID = AK_INVALID_GAME_OBJECT,
AkTimeMs  in_uValueChangeDuration = 0,
AkCurveInterpolation  in_eFadeCurve = AkCurveInterpolation_Linear,
bool  in_bBypassInternalValueInterpolation = false  
)

Reset the value of the game parameter to its default value, as specified in the Wwise project. With this function, you may reset a game parameter to its default value on global scope or on game object scope. Game object scope supersedes global scope. Game parameter values reset on global scope are applied to all game objects that were not overriden with a value on game object scope. To reset a game parameter value on global scope, pass AK_INVALID_GAME_OBJECT as the game object. With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally according to the interpolation curve. If you call SetRTPCValue() or ResetRTPCValue() with in_uValueChangeDuration = 0 in the middle of an interpolation, the interpolation stops and the new value is set directly. Refer to RTPCs and Game Objects, RTPCs and Busses and RTPCs and Plug-Ins for more details on RTPC scope.

Returns:
  • AK_Success if successful
  • AK_IDNotFound if in_pszParamName is NULL.
    Note.gif
    Note: Strings are case-insensitive.
See also:
Parameters:
in_pszRtpcName  Name of the game parameter
in_gameObjectID  Associated game object ID
in_uValueChangeDuration  Duration during which the game parameter is interpolated towards its default value
in_eFadeCurve  Curve type to be used for the game parameter interpolation
in_bBypassInternalValueInterpolation  True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅