Please be advised that the Audiokinetic offices will close at 3:00 p.m. EST on December 22nd, 2017 for the holiday period, and will reopen on Wednesday January 3rd, 2018 at 09:00 a.m. EST. Learn more.

Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. Contact Sales if your project requires a support plan.

MAC UE4-Wwise plugin - Replacing Soundcue references in UE4 code with UAKaudioevent

0 votes
I have the PlugIn for UE4 running and I am working with the UE4 shooter demo. All the weapons in game are referencing Soundcues and I want to replace them to reference Wwise events. I am definitely missing part of this process. Any advice?
asked Jul 26, 2016 in General Discussion by Tom T. (330 points)

1 Answer

0 votes
Hey Tom,

I know this is a very late answer, but just leaving this here for anybody else who comes across this question.

So because the project is a C++ demo project developed by Epic Games (to show off UE4's C++ functionality), it's not as simple as changing the BP reference to an UAkAudioEvent. What you'll have to do is change the functionality of the C++ files from XCode to directly 'Post Events', or make calls from UE, from within the .cpp files. So set up the C++ project to follow Wwise by doing the standard integration from the Wwise launcher for the plugin, follow this procedure:

https://www.audiokinetic.com/library/2017.1.1_6340/?source=UE4&id=using__cpp.html

After that, go to your BP, which is a data-only BP I believe, then access the 'parent class' from it, if those references aren't in the .h file, it might be in a different .h file, which might be one of the #includes at the top of the document. Have a look around, until you find those UPROPERTY(EditDefaultsOnly, Category=Sound), USoundCue* SomeSound, then find where SomeSound is referenced in the .cpp file of the .h, and then call an appropriate PostEvent() function from the Wwise .h files within the Plugin>Wwise>Source>AkAudio directory. Make sure you #include (at the top of the .h, or .cpp file) which AkAudio .h file you're wanting to use the functionality of, then from there you should be good to go, as long as you use correct syntax, etc.

Not a lot of documentation I could find on using the C++ functionality of Wwise with UE4, so the best bet is use the helpful comments and to look at the code in the AkAudio Plugin C++ files.

Hope this helps somebody, sorry it was typed quickly :)
answered Nov 30 by Alex H. (140 points)
...