버전

menu_open
Wwise SDK 2021.1.14

◆ SetRTPCValue() [2/2]

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::SetRTPCValue ( const char *  in_pszRtpcName,
AkRtpcValue  in_value,
AkGameObjectID  in_gameObjectID = AK_INVALID_GAME_OBJECT,
AkTimeMs  in_uValueChangeDuration = 0,
AkCurveInterpolation  in_eFadeCurve = AkCurveInterpolation_Linear,
bool  in_bBypassInternalValueInterpolation = false 
)

Sets the value of a real-time parameter control. With this function, you may set a game parameter value with global scope or with game object scope. Game object scope supersedes global scope. (Once a value is set for the game object scope, it will not be affected by changes to the global scope value.) Game parameter values set with global scope are applied to all game objects that not yet registered, or already registered but not overridden with a value with game object scope. To set a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object. With this function, you may also change 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() with in_uValueChangeDuration = 0 in the middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient. Refer to RTPC와 게임 오브젝트, RTPC와 버스 and RTPC와 플러그인 for more details on RTPC scope.

반환값
AK_Success if the value was successfully set AK_InvalidFloatValue if the value specified was NaN, Inf or FLT_MAX (3.402823e+38)
AK_IDNotFound if in_pszRtpcName is NULL.
참고: Strings are case-insensitive.
참고
매개변수
in_pszRtpcName Name of the game parameter
in_value Value to set
in_gameObjectID Associated game object ID
in_uValueChangeDuration Duration during which the game parameter is interpolated towards in_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를 시작해 보세요