社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

0 投票

Every now and again a certain UAkAudioEvent for pausing and unpausing music won't garbage collect when closing a game made on UE4 version 4.26.2 using Wwise 2021.1.1.7601.1995.  First the garbage collector tries to destroy the audio event via UAkAudioEvent::BeginDestroy() which always fires the following warning (other events also fire it sometimes):

UE_LOG(LogAkAudio, Warning, TEXT("Stopping all instances of the \"%s\" event because it is being unloaded."), *GetName());

Then the garbage collector tries to call UAkAudioEvent::IsReadyForFinishDestroy() over and over again which in turn tries to call AK::SoundEngine::RenderAudio() which doesn't deactivate the event.  The event that is being deleted is the only active event in the audio device and there are no async tasks.  The log file keeps growing filling up the log file with this message:

[2022.04.12-03.38.48:818][394]LogGarbage: Warning: [0]: AkAudioEvent None.None, IsReadyForFinishDestroy: false

[2022.04.12-03.38.48:818][394]LogGarbage: Warning: Spent more than 10.00s on routing FinishDestroy to objects (objects in queue: 1)

The UAkAudioEvent pauses the game's music, starts the menu music, and also pauses all sounds.  There is a resume UAkAudioEvent that does the opposite which always gets called when exiting the game menu.  I only found this forum which had the same problem with no solution.  What is the garbage collector trying to accomplish by calling AK::SoundEngine::RenderAudio() over and over to deactivate the event?   Also why would an event that only contains pauses and a start not deactivate or stay active for a very long time?

分类:General Discussion | 用户: Elroy (100 分)
修改于 用户:Elroy

Please sign-in or register to answer this question.

...