menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票
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?
分类:General Discussion | 用户: em (100 分)

1个回答

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

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

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

TargetRoleAkComponent->PostAkEventExt(AkEvent, false);

请问这个官方有什么解决方案
用户: (140 分)
...