UE-55700

loading hangs on new level with the new audio engine and media sound components

loading hangs on new level with the new audio engine and media sound components

Description

When enabling the AudioDeviceModuleName=AudioMixerXAudio2 setting in the windowsengine.ini file it causes new level loads to lock up.

This may be due to the garbage collection stuck in a loop waiting for the mediasoundcomponents to be ready to delete. As the audio buffering is carrying on at this point, they never get set to ready to delete for long enough.

Steps to Reproduce

Sample project and .ini file provided.

In order to get this to reproduce properly first change the WindowsEngine.ini file located in Uengine\UE_4.19\Engine\Config\Windows

on the top in the [Audio] section comment out AudioDeviceModuleName=XAudio2

Then remove the comment from the new AudioDeviceModuleName=AudioMixerXAudio2

Create a Third person c++ project

Create an empty C++ class (used for debugging)

Create an actor Blueprint containing 8 mono mediasoundcomponents

Add the actor to the level

Set up a key press/mouse click to open level in game instance (I used right click)

Run the game in a new window and trigger the open level in game instance.

Editor locks up requiring a force close.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-55700 in the post.