You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Attempted fix for strange COM failure on build machine. (integrate from FN12.10)
#jira UE-88759 #rb aaron.mcleran ethan.geller [CL 11558912 by jimmy smith in 4.25 branch]
This commit is contained in:
@@ -1628,6 +1628,16 @@ bool FWindowsPlatformProcess::Daemonize()
|
||||
return true;
|
||||
}
|
||||
|
||||
void FWindowsPlatformProcess::SetupAudioThread()
|
||||
{
|
||||
ensure(FPlatformMisc::CoInitialize());
|
||||
}
|
||||
|
||||
void FWindowsPlatformProcess::TeardownAudioThread()
|
||||
{
|
||||
FPlatformMisc::CoUninitialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Maps a relative virtual address (RVA) to an address in memory.
|
||||
*
|
||||
|
||||
@@ -222,6 +222,9 @@ struct CORE_API FGenericPlatformProcess
|
||||
/** Allow the platform to do anything it needs for audio thread */
|
||||
static void SetupAudioThread() { }
|
||||
|
||||
/** Allow the platform to tear down the audio thread */
|
||||
static void TeardownAudioThread() { }
|
||||
|
||||
/** Content saved to the game or engine directories should be rerouted to user directories instead **/
|
||||
static bool ShouldSaveToUserDir();
|
||||
|
||||
|
||||
@@ -186,6 +186,8 @@ public:
|
||||
static FSemaphore* NewInterprocessSynchObject(const TCHAR* Name, bool bCreate, uint32 MaxLocks = 1);
|
||||
static bool DeleteInterprocessSynchObject(FSemaphore * Object);
|
||||
static bool Daemonize();
|
||||
static void SetupAudioThread();
|
||||
static void TeardownAudioThread();
|
||||
protected:
|
||||
|
||||
/**
|
||||
|
||||
@@ -192,6 +192,7 @@ bool FAudioThread::Init()
|
||||
void FAudioThread::Exit()
|
||||
{
|
||||
GAudioThreadId = 0;
|
||||
FPlatformProcess::TeardownAudioThread();
|
||||
}
|
||||
|
||||
uint32 FAudioThread::Run()
|
||||
|
||||
Reference in New Issue
Block a user