Version

menu_open
Attention : vous avez été redirigé vers la plus récente documentation correspondant à votre version générale ( 2019.2.15.7667 ). Si vous souhaitez accéder à la documentation de votre version précise, veuillez télécharger la documentation hors ligne depuis l'Audiokinetic Launcher et sélectionner l'option de documentation Offline dans l'application de création Wwise.
Wwise SDK 2019.2.15

◆ PostMIDIOnEventSync()

virtual AKRESULT AK::IAkGlobalPluginContext::PostMIDIOnEventSync ( AkUniqueID  in_eventID,
AkGameObjectID  in_gameObjectID,
AkMIDIPost in_pPosts,
AkUInt16  in_uNumPosts 
)
pure virtual

Executes a number of MIDI Events on all nodes that are referenced in the specified Event in an Action of type Play. Each MIDI event will be posted in AkMIDIPost::uOffset samples from the start of the current frame. The duration of a sample can be determined from the sound engine's audio settings, via a call to AK::IAkGlobalPluginContext::GetAudioSettings.

Remarks
This function executes the MIDI Events 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
Parameters
in_eventID Unique ID of the Event
in_gameObjectID Associated game object ID
in_pPosts MIDI Events to post
in_uNumPosts Number of MIDI Events to post

Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise