menu
 

La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

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!

dans General Discussion par Robert D. (100 points)

1 Réponse

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
par Simon A. (Audiokinetic) (3.6k 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.
...