Wwise Version
arrow_right Table of Contents
Wwise SDK 2021.1.4

◆ GetAudioOut2PortHandle()

SceAudioOut2PortHandle AK::GetAudioOut2PortHandle ( AkOutputDeviceID  deviceId = 0 )

Returns the current SceAudioOut2PortHandle being used by the Wwise SoundEngine for main output. This should be called only once the SoundEngine has been successfully initialized, otherwise the function will return an invalid value (SCE_AUDIO_OUT2_PORT_HANDLE_INVALID).

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

Returns
the current sceAudioOut2 main output port handle or SCE_AUDIO_OUT2_PORT_HANDLE_INVALID.