I'm trying to program a metering plugin for wwise with a built-in filter. The meter should control a rtpc in the same manner the stock meter plugin works. However I haven't found out how to access a plugin reference from the plugin sdk. Of course I read the Plugin XML Properties documentation.
Mentioned there is the <reference> element with a typical usecase:
<Reference Name="OutputGameParameter" DisplayName="Output Game Parameter">
<Restrictions>
<TypeEnumerationRestriction>
<Type Name="GameParameter" />
</TypeEnumerationRestriction>
</Restrictions>
</Reference>
When adding this to the properties element it creates a dropdown where I can select the RTPCs, but I'm lost, on how to retrieve this reference and set it for instance in the execute method. I tried adding a <AudioEnginePropertyID> element to the reference and setting a RTPC with the same id. It didn't throw any errors, but also didn't work.
Maybe this is something obvious, as this is a common approach for linking parameters, but I just don't see it and can't find any information about it. I also searched in the plugin context and global context but wasn't able to find anything.
I also tried making a regular property and setting that one and hoped, that the linked rtpc in wwise would change, but that's surely not how it works (and it didn't). Only the stock meter plugin works perfectly like I would expect.
Thanks in advance for any tips.