버전

menu_open
Wwise SDK 2018.1.11

◆ GetRTPCValue() [2/2]

AKRESULT __cdecl AK::SoundEngine::Query::GetRTPCValue ( const char *  in_pszRtpcName,
AkGameObjectID  in_gameObjectID,
AkPlayingID  in_playingID,
AkRtpcValue out_rValue,
RTPCValue_type io_rValueType 
)

Get the value of a real-time parameter control (by ID) An RTPC can have a any combination of a global value, a unique value for each game object, or a unique value for each playing ID.

The value requested is determined by RTPCValue_type, in_gameObjectID and in_playingID.

If a value at the requested scope (determined by RTPCValue_type) is not found, the value that is available at the the next broadest scope will be returned, and io_rValueType will be changed to indicate this.

Note
When looking up RTPC values via playing ID (ie. io_rValueType is RTPC_PlayingID), in_gameObjectID can be set to a specific game object (if it is available to the caller) to use as a fall back value. If the game object is unknown or unavailable, AK_INVALID_GAME_OBJECT can be passed in in_gameObjectID, and the game object will be looked up via in_playingID.

However in this case, it is not possible to retrieve a game object value as a fall back value if the playing id does not exist. It is best to pass in the game object if possible.

Returns
AK_Success if succeeded, AK_IDNotFound if the game object was not registered or the rtpc name could not be found, or AK_Fail if the RTPC value could not be obtained
See also
Parameters
in_pszRtpcName String name of the RTPC
in_gameObjectID Associated game object ID, ignored if io_rValueType is RTPCValue_Global.
in_playingID Associated playing ID, ignored if io_rValueType is not RTPC_PlayingID.
out_rValue Value returned
io_rValueType In/Out value, the user must specify the requested type. The function will return in this variable the type of the returned value. );

이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요