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.

How do I find the Unity WAAPI client subscription failure reason?

+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!

asked Jul 15, 2019 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)
answered Jul 16, 2019 by Bernard R. (Audiokinetic) (35,090 points)
selected Jul 16, 2019 by Kenneth S.
That did it! Thank you!
...