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.

+1 vote
So I've been rewriting a lot of code after we integrated Wwise into our project and I hit a dead end once I tried implementing the marker functionality, the problem stems from trying to cast the UAkCallbackInfo* Parameter in the PostEvent Callback function (which looks like this void SomeFunction(EAkCallbackType Type, UAkCallbackInfo* Info)) to a UAkMarkerCallbackInfo* which just throws me an error.

After looking around the internet for a around a day I decided to give up on looking and decided to come here to hopefully get some answers on what I might be doing wrong.

the error is the following "unresolved external symbol "private: static class UClass * __cdecl UAkMarkerCallbackInfo::GetPrivateStaticClass(void)" (?GetPrivateStaticClass@UAkMarkerCallbackInfo@@CAPEAVUClass@@XZ)" and I can't seem to find any info on this specific scenario. Any help would be much appreciated.
in General Discussion by Tumi G. (110 points)

2 Answers

0 votes
I am currently looking for the same answer, I noticed it pops the same error whenever you cast this to child class of UAkEventCallbackInfo.
by omnisepher (190 points)
0 votes

For anyone that is looking for an answer to this problem, the issue both of these commenters are running into is due to UAkMarkerCallbackInfo not having the AKAUDIO_API macro after the class specifier. That macro allows the class to be exported out of the plugin and used in the rest of your project. To solve the unresolved externals error just add AKAUDIO_API, the declaration should look like this then -
class AKAUDIO_API UAkMarkerCallbackInfo : public UAkEventCallbackInfo

Doing that will allow you to cast to UAkMarkerCallbackInfo outside of the Wwise plugin.

by Oliver Collier (180 points)
...