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

Hello,

I am trying to use the Unity WAAPI client to subscribe to the "ak.wwise.core.project.saved" topic but I'm running into an issue where it always seems to fail and does not supply any reason as to why.

I connect correctly and perform a call to the core.object.get function fine immediately prior so I'm pretty sure that it's not an issue with anything else, I suspect it's how I'm meant to form the 'Options' argument, however for this particular subscription topic, there are no options to be provided and the whole unity client crashes if you pass in null for this value.

Here's the code in question:

if (AkWaapiClient.Subscribe("ak.wwise.core.project.saved""", OnProjectSaved, out ulong subID, out string result))
{
    UberDebug.LogChannel("Sound""Successfully subscribed to wWise project changes!");
    HLGEditor.EditorProjectPrefs.Local.SetInt(ProjectSavedSubscriptionID_PrefID, (int)subID);
}
else
{
    UberDebug.LogChannel("Sound""Failed to subscribe to wWise project changes!");
}

Any help would be absolutely fantastic as the documentation is very sparse around this subject unless I'm missing something!

Thanks a lot!

in General Discussion by Kenneth S. (140 points)

1 Answer

0 votes
 
Best answer
Did you try with an empty JSON object to for the options subscription:
AkWaapiClient.Subscribe("ak.wwise.core.project.saved", "{}", OnProjectSaved, out ulong subID, out string result)
by Bernard R. (Audiokinetic) (35.8k points)
selected by Kenneth S.
That did it! Thank you!
...