Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+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)
+1 vote

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 (200 points)
Thanks for the solution! Let's hope AudioKinetic fixes this soon so we don't have to merge this every time we update the SDK.
...