Version

menu_open
Warning: you were redirected to the latest documentation corresponding to your major release ( 2022.1.15.8501 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Wwise SDK 2022.1.15

◆ GetListeners()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::Query::GetListeners ( AkGameObjectID  in_GameObjectID,
AkGameObjectID out_ListenerObjectIDs,
AkUInt32 oi_uNumListeners 
)

Get a game object's listeners.

Returns
AK_Success if succeeded, or AK_IDNotFound if the game object was not registered
See also
Parameters
in_GameObjectIDSource game object identifier
out_ListenerObjectIDsPointer to an array of AkGameObjectID's. Will be populated with the IDs of the listeners of in_GameObjectID. Pass NULL to querry the size required.
oi_uNumListenersPass in the the available number of elements in the array 'out_ListenerObjectIDs'. After return, the number of valid elements filled in the array.

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