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

How to get Attenuation property value via WAAPI given Sound object ID?

0 votes
Hi,

Is it possible to get the RadiusMax value from the Attenuation object via WAAPI given the Sound object ID?

How do I get the Attenuation or other object properties if I only have the object ID for the Sound or AudioSource object?

Thanks!
asked Apr 2, 2019 in General Discussion by Michelle A. (220 points)

1 Answer

+1 vote

Using the ak.wwise.core.object.get, use the options to specify what to obtain.

In the return options, use:

  • "@@Attenuation" on an actor-mixer hierarchy object, music object or bus object, to obtain the attenuation object id and name, taking into consideration the Override parent settings.
  • "audioSource:maxRadiusAttenuation" on an actor-mixer hierarchy object, music object, bus object or event object, to obtain the max radius value for an object, and the attenuation object id
  • "@RadiusMax" on an attenuation object to obtain the max radius property value.

Example, to obtain the Attenuation object from a Sound id or Source id:

 

Arguments:
{
    "from": {
        "id": [
            "{24979032-B170-43E3-A2E4-469E0193E2C3}"
        ]
    }
}

Options:
{
    "return": [
        "@@Attenuation"
    ]
}

Note that with 2019.1.0+, you can chain accessors:

{
    "return": [
        "@@Attenuation.@RadiusMax"
    ]
}

Which is very similar to:

{
    "return": [
        "audioSource:maxRadiusAttenuation"
    ]
}

answered Apr 4, 2019 by Bernard R. (Audiokinetic) (35,090 points)
...