After integrating the 4.11.1 hotfix into our build, editor will crash on load.
Exception is caused in the CaptureDeviceCallback() in \Engine\Source\Runtime\Online\Voice\Private\Windows\VoiceModuleWindows.cpp.
// Allow HMD to override the voice capture device
if (VCPtr->VoiceCaptureDeviceCount == VCPtr->HmdVoiceCaptureDeviceIndex)
{
UE_LOG(LogVoice, Display, TEXT("VoiceCapture device overridden by HMD to use '%s' %s"), lpcstrDescription, *PrintMSGUID(lpGuid));
VCPtr->VoiceCaptureDeviceGuid = *lpGuid;
}
IpGuid is null.
I am running an Oculus Rift DK2, there is no mic, so there can be no voice capture device.
Checking the declaration of HmdVoiceCaptureDeviceIndex, it mentions that this should be -1 if unused.
However, HmdVoiceCaptureDeviceIndex is not set to -1 anywhere that I can see.
Updating the FVoiceCaptureDeviceWindows constructor fixes this:
FVoiceCaptureDeviceWindows::FVoiceCaptureDeviceWindows() :
bInitialized(false),
DirectSound(NULL)
{
// Declaration mentions this should be -1 if unused.
// Assuming if it gets init'd properly, it will be set to non-zero.
// At the moment, a HMD will override the voice capture device even if it doesn't have a mic (such as the Oculus DK2).
HmdVoiceCaptureDeviceIndex = -1;
}
Known issue or should I be making a pull request?
Thanks.
Kris