Version

menu_open
Wwise SDK 2022.1.11

◆ 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.

Returns
the current PS4 main output port handle or -1.

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise