Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

how to use ak.wwise.core.object.get

0 votes

I try to use ak.wwise.core.object.get ,but it always dont work.
i dont know how to fill ( keywordArguments) in C# and wwise sdk 2017.1.2.

for example

    "from": {
        "id": [
fill to dict=》keywordArguments?????
asked Oct 6, 2019 in Feature Requests by jayfan j. (100 points)

1 Answer

0 votes

The WAAPI C# sample implementation using WampSharp included in 2017.1 and 2018.1 is very hard to use and we don't recommend using it anymore.

Instead, we recommend using the Audiokinetic implementation provided with 2019.1. It is compatible with 2017.1 Authoring. 

To get it, download the most recent version of Wwise (2019.1.1+) and use the folder \SDK\samples\WwiseAuthoringAPI\cs. Here is an example:

Here is an example with the new C# API:

                    // Query the volume, using JObject constructor
                    var query = new JObject(
                        new JProperty("from", new JObject(
                            new JProperty("id", new JArray(new string[] { testObj["id"].ToString() })))));

                    var options = new JObject(
                        new JProperty("return", new string[] { "name", "id", "@Volume" }));

                    JObject result = await client.Call(ak.wwise.core.@object.get, query, options);

There is also version of Call which takes JSON string directly.

answered Oct 7, 2019 by Bernard R. (Audiokinetic) (30,640 points)