Crash in Unreal with -nosound argument

The assert occurs in :

UEditorEngine::ResetPreviewAudioComponent

Because the AudioComponent is null

From what I have seen, it appears that the function

FAudioDevice::CreateComponent

returns null because of the function

GEngine->UseSound()

which returns false because of the -nosound argument

Steps to Reproduce

  • Start the Unreal Editor with the -nosound argument
  • Start a Cooking for Windows
  • The Editor throws an assert because of the Sound Effect it tries to play

Thanks Victor -- I’ll try and get a fix in today.