版本

menu_open
警告:系统已根据您所用大版本 (2023.1.4.8496) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise SDK 2023.1.4

◆ GetPS4OutputHandle()

int AK::GetPS4OutputHandle ( AkOutputDeviceID  deviceId = 0)

Returns the PS4 output port handle being used by the Wwise SoundEngine for the output matching the provided OutputDeviceId. This should be called only once the SoundEngine has been successfully initialized, otherwise the function will return an invalid value (-1). Invalid values will also be returned if the OutputDeviceId matches a device that is not an output for the Default, DVR, Communication, Personal, Pad_output, or Aux devices.

Use AK::SoundEngine::RegisterAudioDeviceStatusCallback() to get notified when devices are created/destructed.

Note that because this function acquires the global lock in Wwise in order to fetch device state, it is recommended to call this inside of the AudioDeviceStatusCallback, after a successful AkAudioDeviceEvent_Initialization.

返回
the current PS4 main output port handle or -1.

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅