バージョン

menu_open
Wwise SDK 2023.1.3

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

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 sceAudioOut2 main output port handle or SCE_AUDIO_OUT2_PORT_HANDLE_INVALID.

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

サポートは必要ですか?

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

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

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

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

Wwiseからはじめよう