Wwise Authoring is currently not compatible with macOS Catalina. We recommend that you remain on the current version of your operating system until further notice.

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": [
            "{24979032-B170-43E3-A2E4-469E0193E2C3}"
        ]
    }
}
fill to dict=》keywordArguments?????
asked Oct 6 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:
https://www.audiokinetic.com/library/edge/?source=SDK&id=wamp__cs.html
 

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);
                    System.Console.WriteLine(result["return"][0]["@Volume"]);

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

answered Oct 7 by Bernard R. (Audiokinetic) (27,410 points)
...