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.

+3 votes
I am trying to call PostAkEventByNameWithDelegate, but the signature for the function is not working for me.

Can someone help?

    MyAkComp->PostAkEventByNameWithDelegate( EventName, AkCallbackType::AK_EndOfEvent, &UMyClass::OnDialogEventComplete );

The signature for my OnDialogEventComplete function is:

    UFUNCTION()
        void OnDialogEventComplete( EAkCallbackType CallbackType, class UAkCallbackInfo* CallbackInfo );
in General Discussion by Ben H. (250 points)

1 Answer

+1 vote
I would really appreciate input on this one, ideally an example of how this is used.

In my code, I have the delegate as a member of my custom sound component, which I pass by reference to the PostEvent function with the callback mask of 0 (which should be EndOfEvent?). I bind a local function using BindDynamic macro on BeginPlay, but my callback never gets triggered.
by Adrian J. (380 points)
One year later, but just incase other people encounter this issue:

Do not use EAkCallbackType from AkGameplayTypes.h where EndOfEvent = 0 as the Callback mask.

Use AkCallbackType from AkCallback.h where Ak_EndOfEvent = 0x0001 instead.

if you use EAkCallbackType::EndOfEvent
FAkComponentCallbackManager::AkComponentCallback will fail because the pPackage->uUserFlags are 0 instead of 1

Cheers
This sir, you just ended my 8 hour long struggle in header files.
...