Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

How to use Unreal c++ to trigger events/control RTPC? What I try doesn't work..

0 votes
I'm having trouble using Unreal (4.25) C++ to post events as well as control RTPCs, or use any of the other features. Blueprints is fine but I feel I don't understand the correct way to do this with C++.

Integrations are all up to date and using the correct ones as far as I can tell, integrated via the launcher.

Is there a difference between using the Wwise_IDs.h and using AK::GAMEPARAMETERS::PARAM or the name itself AK::SoundEngine::SetRTPCValue(L"Param", Value)? Where Value is a number between 0-1.

I've also tried adding an AkComponent then calling AkComponent->SetRTPCValue(L"Param", Value) and AK::SoundEngine::SetRTPCValue(L"Param", (AkRtpcValue)Value)?

Also when I use either one of these my game crashes - i'm not sure why, it looks for the AkAtomic.h file but can't find it.

Can someone give me an example of how to use Unreal c++ and Wwise instead of Blueprints / tell me what I'm doing wrong?
asked Oct 25, 2020 in General Discussion by em (100 points)

1 Answer

0 votes
我也遇到 此问题,我给UAkComponent设置一个RTPC后,再播放一个Event,但是Event的声音并不是我所传的RTPC距离应该播放的声音,而是一直是用的RTPC自己在wise中设置的默认值,贴上我的代码

UAkComponent* TargetRoleAkComponent;  //注意,这个AK组件已经注册了,是从角色身上获取的

TargetRoleAkComponent->SetRTPC(rrrAkRtpc, 6000.f);

TargetRoleAkComponent->PostAkEventExt(AkEvent, false);

请问这个官方有什么解决方案
answered Jul 2, 2022 by (140 points)
...