Warn if multiple endpoint submix have been registered on a particular endpoint, as that isn't supported.

#rb trivial
#jira none

#ROBOMERGE-AUTHOR: jeff.newquist
#ROBOMERGE-SOURCE: CL 18311510 in //UE5/Release-5.0/... via CL 18311641
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18311736 by jeff newquist in ue5-release-engine-test branch]
This commit is contained in:
jeff newquist
2021-11-29 12:14:57 -05:00
parent 77435048b2
commit 108af436f1

View File

@@ -663,7 +663,12 @@ public:
};
TSharedRef<IWinDualShockAudioDevice> Device =
InputDevice ? InputDevice->GetAudioDevice(DeviceKey, AudioDeviceCreateFn) : GetEarlyAudioDevice(DeviceKey, AudioDeviceCreateFn);
return TUniquePtr<IAudioEndpoint>(new FExternalWinDualShockEndpoint<PortType>(Device));
FExternalWinDualShockEndpoint<PortType>* Endpoint = new FExternalWinDualShockEndpoint<PortType>(Device);
if (!Endpoint->IsEndpointAllowed())
{
UE_LOG(LogWinDualShock, Warning, TEXT("Only one instance of %s endpoint submit is allowed. Additional instances ignored."), *GetEndpointTypeName().ToString());
}
return TUniquePtr<IAudioEndpoint>(Endpoint);
}
virtual UClass* GetCustomSettingsClass() const override