menu
 

Audiokinetic의 커뮤니티 Q&A는 사용자가 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.
...