版本

menu_open
AKRESULT __cdecl AK::SoundEngine::Wii::SetActiveControllers ( AkGameObjectID  in_GameObjectID,
AkUInt32  in_uActiveControllersMask  
)

Set a game object's active controllers.

This function is used to route voices associated to the specified game objects to speakers of the specified Wii remote controllers. Note that by default, audio goes to the TV output only. Sounds can be routed simultaneously to the main TV output if the flag AK_WII_MAIN_AUDIO_OUTPUT is specified. Note that if ActivateRemoteSpeakers() has not been called, no audio can be heard from the remote controller speakers.

For example:

To set the audio output to the TV output and to Controller #0, use the following code: SetActiveControllers( GameObjectID, AK_WII_REMOTE_0 | AK_WII_MAIN_AUDIO_OUTPUT )

To set the audio output to go only to Controllers 2 and 3, use the following code: SetActiveControllers( GameObjectID, AK_WII_REMOTE_2 | AK_WII_REMOTE_3 )

This function is thread-safe.

See also:
Returns:
Always returns AK_Success
Parameters:
in_GameObjectID  Game object identifier
in_uActiveControllersMask  Bitmask representing the active controllers (LSB = Controller 0, set to 1 means active)

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅