I installed Wwise Motion as part of the Wwise plugin (2021.1.6.7774) in my Unreal 4.27.2 project and added motion rumble to some of my sounds. I can feel the rumble in Wwise but nothing in Unreal.
Documentation says that I should call:
AkOutputSettings outputSettings("Wwise_Motion", 0);
AK::SoundEngine::AddOutput(outputSettings);
I added these lines in the OnPossess of my player Controller but it makes my application crash when The AddOutput is called.
Exception thrown at 0x00007FF8CBCFB38D (ntdll.dll) in UE4Editor.exe: 0xC0000005: Access violation writing location 0x0000000000000308.
Callstack:
ntdll.dll!00007ff8cbcfb38d() Unknown
[Inline Frame] UE4Editor-GameProject.dll!CAkLock::Lock() Line 59 C++
[Inline Frame] UE4Editor-GameProject.dll!AkAutoLock<CAkLock>::{ctor}(CAkLock &) Line 41 C++
[Inline Frame] UE4Editor-GameProject.dll!CAkIndexItem<CAkAudioDevice *>::GetPtrAndAddRef(unsigned int in_ID) Line 74 C++
UE4Editor-GameProject.dll!AK::SoundEngine::AddOutput(const AkOutputSettings & in_settings, unsigned __int64 * out_pOutputID, const unsigned __int64 * in_pListenerIDs, unsigned int in_uNumListeners) Line 6015 C++
UE4Editor-GameProject.dll!AGameProjectPlayerController::InitWwiseMotion() Line 721 C++
UE4Editor-GameProject.dll!AGameProjectPlayerController::OnPossess(APawn * aPawn) Line 755 C++
So my question is, how is one supposed to enable Motion in his Unreal Project?