Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes
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.
in General Discussion by j0nwin (130 points)

1 Answer

0 votes
 
Best answer

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
        }
    ]
}
by Bernard R. (Audiokinetic) (35.8k points)
selected by 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.
...