Wwise SDK 2025.1.0
|
#include <AkCommandTypes.h>
Public 속성 | |
AkPortalID | portalID |
Unique portal ID, chosen by the client. 더 자세히 ... | |
struct AkPortalParams | params |
Parameter for the portal. 더 자세히 ... | |
Add or update an acoustic portal. A portal is an opening that connects two or more rooms to simulate the transmission of reverberated (indirect) sound between the rooms. This function may be called multiple times with the same ID to update the parameters of the portal. The ID (portalID
) must be chosen in the same manner as AkGameObjectID's
, as they are in the same ID-space. The spatial audio lib manages the registration/unregistration of internal game objects for portals that use these IDs, and therefore must not collide.
Optionally, you can associate a name to the portal for profiling purposes. Call AK_CommandBuffer_AddString after adding the command to attach a name to the portal:
auto cmd = (AkCmd_SA_SetPortal*)AK_CommandBuffer_Add(buffer, AkCommand_SA_SetPortal); // Fill command... AK_CommandBuffer_AddString(buffer, "Portal 1");
This command can fail for the following reasons:
portalID
or some portal parameters are not valid.AkCommandTypes.h 파일의 1159 번째 라인에서 정의되었습니다.
프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.
Wwise를 시작해 보세요