diff --git a/FMODStudio/Source/FMODStudio/Private/FMODStudioModule.cpp b/FMODStudio/Source/FMODStudio/Private/FMODStudioModule.cpp index c5dd8bce..d0f67f9d 100755 --- a/FMODStudio/Source/FMODStudio/Private/FMODStudioModule.cpp +++ b/FMODStudio/Source/FMODStudio/Private/FMODStudioModule.cpp @@ -421,6 +421,14 @@ FString FFMODStudioModule::GetDllPath(const TCHAR *ShortName, bool bExplicitPath bool FFMODStudioModule::LoadLibraries() { +#if PLATFORM_WINDOWS + if (!FWindowsPlatformMisc::CoInitialize()) + { + UE_LOG(LogFMOD, Error, TEXT("Could not initialize COM library!")); + return false; + } +#endif + #if PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_ANDROID || PLATFORM_LINUX || PLATFORM_MAC || defined(FMOD_DONT_LOAD_LIBRARIES) return true; // Nothing to do on those platforms #else @@ -1533,4 +1541,4 @@ void FFMODStudioModule::ActivateAudioSession() } #endif -#undef LOCTEXT_NAMESPACE \ No newline at end of file +#undef LOCTEXT_NAMESPACE