バージョン
menu

Wwise SDK 2025.1.0
AkCmd_SA_SetPortal 構造体

#include <AkCommandTypes.h>

公開変数類

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:

  • AK_InvalidParameter: portalID or some portal parameters are not valid.
  • AK_InsufficientMemory: Not enough memory to complete the operation.
参照

AkCommandTypes.h1159 行目に定義があります。


このページはお役に立ちましたか?

サポートは必要ですか?

ご質問や問題、ご不明点はございますか?お気軽にお問い合わせください。

サポートページをご確認ください

あなたのプロジェクトについて教えてください。ご不明な点はありませんか。

プロジェクトを登録していただくことで、ご利用開始のサポートをいたします。

Wwiseからはじめよう