Table of Contents

virtual AKRESULT AK::IAkGlobalPluginContext::StopMIDIOnEventSync ( AkUniqueID  in_eventID = AK_INVALID_UNIQUE_ID,
AkGameObjectID  in_gameObjectID = AK_INVALID_GAME_OBJECT  
) [pure virtual]

Stops MIDI notes on all nodes that are referenced in the specified event in an action of type play, with the specified Game Object. Invalid parameters are interpreted as wildcards. For example, calling this function with in_eventID set to AK_INVALID_UNIQUE_ID will stop all MIDI notes for Game Object in_gameObjectID.

This function stops the MIDI notes without going through the message queue. In order to do so it acquires the global Wwise sound engine lock. It should therefore only be called from one of the global engine hooks (see AK::IAkGlobalPluginContext::RegisterGlobalCallback). Use AK::IAkGlobalPluginContext::GetIDFromString() if you use event names (strings).
See also:
in_eventID  Unique ID of the Event
in_gameObjectID  Associated game object ID