版本

menu_open
警告:系统已根据您所用大版本 (2021.1.14.8108) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise SDK 2021.1.14

◆ PostMIDIOnEvent()

AKSOUNDENGINE_API AkPlayingID AK::SoundEngine::PostMIDIOnEvent ( AkUniqueID  in_eventID,
AkGameObjectID  in_gameObjectID,
AkMIDIPost in_pPosts,
AkUInt16  in_uNumPosts,
bool  in_bAbsoluteOffsets = false,
AkUInt32  in_uFlags = 0,
AkCallbackFunc  in_pfnCallback = NULL,
void *  in_pCookie = NULL,
AkPlayingID  in_playingID = AK_INVALID_PLAYING_ID 
)

Executes a number of MIDI Events on all nodes that are referenced in the specified Event in an Action of type Play. The time at which a MIDI Event is posted is determined by in_bAbsoluteOffsets. If false, each MIDI event will be posted in AkMIDIPost::uOffset samples from the start of the current frame. If true, each MIDI event will be posted at the absolute time AkMIDIPost::uOffset samples. To obtain the current absolute time, see AK::SoundEngine::GetSampleTick. The duration of a sample can be determined from the sound engine's audio settings, via a call to AK::SoundEngine::GetAudioSettings. If a playing ID is specified then that playing ID must be active. Otherwise a new playing ID will be assigned.

参见
参数
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
in_bAbsoluteOffsets Set to true when AkMIDIPost::uOffset are absolute, false when relative to current frame
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_playingID Target playing ID

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅