fmod / fmod-for-unreal

FMOD Studio integration with Unreal.
https://fmod.com/resources/documentation-unreal
MIT License
202 stars 84 forks source link

Initialize COM before making any calls to FMOD API #68

Open slonopotamus opened 2 years ago

slonopotamus commented 2 years ago

According to FMOD documentation, user must call CoInitialize before accessing any FMOD API.

However, FMOD plugin doesn't do that explicitly. Unreal Engine itself also doesn't guarantee that CoInitialize will be called before FMOD plugin startup.

This commit partially fixes issues discovered when trying to run FMOD plugin in Unreal Engine containers.