menu
 

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

0 投票
I'm using the WAAPI to develop a plugin for Wwise and I was wondering if there was an easy to get the relative path of where the .wproj resides. I've been digging through the documentation and sample code provided with the SDK, but haven't had much luck.
分类:General Discussion | 用户: j0nwin (130 分)

1个回答

0 投票
 
已采纳

https://www.audiokinetic.com/library/2017.2.3_6575/?source=SDK&id=ak__wwise__core__object__get.html

Get the project name, path and dirty state.

ak.wwise.core.object.get

Retrieves the project name, file path and dirty state. Note that the project name is defined in the wproj xml, and may not match the file name.

Arguments:

{
    "from": {
        "ofType": [
            "Project"
        ]
    }
}

Options:

{
    "return": [
        "name", 
        "filePath", 
        "workunit:isDirty"
    ]
}

Result:

{
    "return": [
        {
            "filePath": "C:\\WwiseProjects\\MyProject\\MyProject.wproj", 
            "name": "MyProject", 
            "workunit:isDirty": true
        }
    ]
}
用户: Bernard R. (Audiokinetic) (35.8k 分)
采纳于 用户:Bernard R. (Audiokinetic)
Thank you for the guidance.

I just wanted to expand on this answer for future readers who develop in C++ so that they can see where and how one would use "ak.wwise.core.object.get"

When installing Wwise, be sure to install the SDK and please use the SampleClient solution under:
<Wwise Root Directory>\SDK\samples\WwiseAuthoringAPI\cpp\SampleClient

Look at TestClient.cpp line 58 where the similar "ak::wwise:core::getInfo" is used and use this as a starting point.
...