menu
 

Audiokinetic의 커뮤니티 Q&A는 사용자가 Wwise와 Strata 커뮤니티 내에서 서로 질문과 답변을 하는 포럼입니다. Audiokinetic의 기술 지원팀에게 문의하고 싶으신 경우 지원 티켓 페이지를 사용해주세요.

0 투표

We need a sort of callback to Unity/whatever to let us know when a sound is finished playing with Wwise. Is this possible? Or is there another method for doing it?

I was able to find the following about estimating duration of audio files under "SoundBank Settings - SoundBanks Tab":

"Event info: Estimated duration
Attempts to determine the expected duration of each event in a SoundBank. For each event, a DurationType, MinDuration, and MaxDurations attribute will be included in the soundbanksinfo.xml file. The DurationType may be one of: "OneShot", "Infinite", "Mixed" or "Unknown". "OneShot" indicates a non-looping sound; "Infinite", a looping sound; "Mixed", a sound which may or may not loop infinitely (possibly based on random chance or a switch), and "Unknown" indicates that Wwise was not able to determine the duration. The MinDuration and MaxDuration attributes attempt to place a lower and upper bound on the duration of an event. Note that these bounds are only an estimate and may or may not be accurate depending on runtime conditions.
"

It seems like it does something like what I want. Still, is it possible to get a callback for when a sound has finished playing?

General Discussion Egil S. (110 포인트) 로 부터

1 답변

+3 투표
You should look into the AK_EndOfEvent callback. You can refer to the Wwise SDK documentation documentation for the AkCallback.h file.
Benoit S. (Audiokinetic) (16.0k 포인트) 로 부터
Perfect!

Thanks for pointing me in the right direction.
...