Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

How to determine which sound object was played from a random container?

0 votes

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?



asked Apr 3, 2014 in General Discussion by Robert D. (100 points)

1 Answer

0 votes
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,

answered Apr 3, 2014 by Simon A. (Audiokinetic) (3,490 points)
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