|
◆ PostEvent() [1/2]
Asynchronously posts an Event to the sound engine (by event ID).
The Event must be loaded through a SoundBank before the call to PostEvent. The callback function can be used to be notified when markers are reached or when the event is finished (see AkCallbackType). An array of wave file sources can be provided to resolve External Sources triggered by the event. - Returns
- The playing ID of the event launched, or AK_INVALID_PLAYING_ID if posting the event failed and an error will be displayed in the debug console and the Wwise Profiler.
- See also
-
- Parameters
-
in_eventID | Unique ID of the event |
in_gameObjectID | Associated game object ID |
in_uFlags | Bitmask: see AkCallbackType |
in_pfnCallback | Callback function |
in_pCookie | Callback cookie that will be sent to the callback function along with additional information |
in_cExternals | Optional count of external source structures |
in_pExternalSources | Optional array of external source resolution information |
in_PlayingID | Optional (advanced users only) Specify the playing ID to target with the event. Will Cause active actions in this event to target an existing Playing ID. Let it be AK_INVALID_PLAYING_ID or do not specify any for normal playback. |
|