menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票

Is there a way, perhaps in the PostEvent() callback, to determine which specific sound object in a random container just got selected to be played (by posting that event)?

What I'm trying to do: I have randomized (shuffled) containers that each have a multitude of VO variants for the same scenario (e.g. "Reloading!", "I'm Reloading!", "I need to reload!" etc. for a character that is reloading their weapon). It's preferable to use only a single event and just allow WWise's nifty random settings control which exact sound plays, but I need to know which specific variant was chosen by the random container so that I can select the facial animation (lip-flap) that matches with the exact VO.

Is this possible?

 

Thanks!

分类:General Discussion | 用户: Robert D. (100 分)

1个回答

0 投票
Hi Robert,

If you select the option "Insert filename marker" in the Conversion settings, you can receive a callback telling you which sound has been chosen by the random container. This option is used for both lipsync and captions.

Hope this helps,

Simon
用户: Simon A. (Audiokinetic) (3.6k 分)
Hello Robert,
Can you specify how can i get the filename by which callback?
I tried to use postEvent function, i can only get callback if i use AkCallbackType.AK_EndOfEvent. But i can't get callback for AkCallbackType.AK_MusicPlayStarted. That means i can't know which sound is playing
I know this is an old thread, but for anyone else looking for an answer: Go into AkCallback.h, you can see the Callback type: AK_Marker. Use that one. Also make sure that you call PostEvent with AK_Marker as one of your callback flags. the 'label' variable will have the name of the wave/line that was selected.
...