Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. 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?

 

Thanks!

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,

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