커뮤니티 Q&A

Audiokinetic의 커뮤니티 Q&A 포럼에 오신 것을 환영합니다. 이 포럼은 Wwise와 Strata 사용자들이 서로 도움을 주는 곳입니다. Audiokinetic의 직접적인 도움을 얻으려면 지원 티켓 페이지를 사용하세요. 버그를 보고하려면 Audiokinetic 런처에서 Bug Report 옵션을 사용하세요. (Q&A 포럼에 제출된 버그 보고는 거절됩니다. 전용 Bug Report 시스템을 사용하면 보고 내용이 담당자에게 정확히 전달되어 문제 해결 가능성이 크게 높아집니다.)<segment 6493>

빠르고 정확한 답변을 얻으려면 질문을 올릴 때 다음 팁을 참고하세요.

  • 구체적인 내용을 적어주세요: 무엇을 하려는지, 혹은 어떤 특정 문제에 부딪혔는지 설명하세요.
  • 핵심 정보를 포함하세요: Wwise와 게임 엔진 버전, 운영체제 등 관련 정보를 함께 제공하세요.
  • 시도한 방법들을 알려주세요: 문제 해결을 위해 이미 어떤 단계를 시도해봤는지 설명해주세요.
  • 객관적인 사실에 초점을 맞추세요: 문제의 기술적 사실을 중심으로 설명하세요. 문제에 집중할수록 다른 사람들이 더 빠르게 해결책을 찾을 수 있습니다.

0 투표
Hello,

To summarize the issue, Event ID's aren't recognized in my wwise integrated UE5 project until the event is manually played by right clicking the AKEvent asset and clicking the Play Event action in editor.

I have a wwise project with a single sound bank and 2 events. These events work as expected in the wwise project. I've integrated with Unreal 5 and successfully can play audio.

In my Unreal project I'm calling the events via the AudioDevice->PostEventOnActor function in c++, passing in the explicit event id for the event I'd like played. I have a properly named AK Event asset for each event. Right clicking play on these events works as expected.

This issue is that upon initially opening the project (or in a packaged build), attempting to post the event by ID at runtime results in "Event ID not found". However, if I right click and play any one of the the events in the content browser, it now locates the event's and plays as expected at runtime.

In troubleshooting I thought it may be related to the InitSound bank being loaded which doesn't contain a reference to these events, and that playing the event in editor via the AK action may be loading and caching the proper soundbank behind the scenes - however I can't confirm this and am finding conflicting information on if this current version requires me to explicitly load my Soundbank prior to posting the event with the introduction of Auto Defined Sound banks and EBP. It seems that this version of wwise stripped the ability to toggle EBP and auto asset sync on or off to test if it's related.

Any advice on this?

Details
Unreal Engine Project Version: 5.0
Wwise Integration 2022.1.0.7985.2398
General Discussion Mason E. (140 포인트) 로 부터

1 답변

+1 투표
 
우수 답변

Hi Mason,
The 2022.1 integration is designed so that loading an Unreal asset corresponding to a Wwise object will load its required resources (SoundBanks and media files). Because you are following a code path that does not require you to load the Event assets before posting them, the sound engine does not have the information necessary to play the event. Right-clicking or inspecting an asset in the Editor automatically loads it (and assets don't really get unloaded when working in editor), which explains why previewing your events would temporarily fix the problem.

The simplest way to ensure you are loading your Events properly before playing them is to use PostEvent API functions that take a reference to an AkAudioEvent as an argument. Another way to ensure these assets are loaded is to reference them in some manner in the Maps or Blueprints that use them, this way all the necessary resuorces will be loaded with the level (or asset using the blueprint).
If you are working purely from code, you will likely have to use Unreal's asset loading uitilities such as the StreamableManager.

Etienne R. (Audiokinetic) (1.1k 포인트) 로 부터
선택됨 Mason E. 로 부터
Thanks for the quick and thorough response! Storing an AkAudioEvent and passing the reference into AudioDevice->PostAkAudioEventOnActor worked like a charm. Confirmed my suspicions that calling an event by ID without prior explicit loading wasn't working as I had expected.

Thanks for the help.
...