在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票

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?????
分类:Feature Requests | 用户: jayfan j. (100 分)

1个回答

0 投票

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.

用户: Bernard R. (Audiokinetic) (35.8k 分)
...