Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. Contact Sales if your project requires a support plan.

RTPCs per instance: how do I change plugin parameters on a single instance of a sound?

0 votes
I'm new to Wwise, and chose to use it for this project because of the possibility of integrating Pure Data patches via Heavy Audio. So I've made a custom plugin that way, which has a couple of parameters that I want to control in-game. It's for a string that is manipulated in the game and changes its tuning accordingly. I have arbitrarily many instances of this object to each of which I've attached the same event. Now I reach for the functionality that will allow me to feed a value to each of these strings only to find that... Wwise doesn't have it?

From what I understand so far, all of the Game Syncs, and RTPCs in particular, are global variables: once I assign plugin parameters to a Game Parameter, each instance of that Sound SFX will respond in the same way to that Game Parameter.

Is there a way to assign a local parameter, ie. so that my script can say "change this parameter for the Wwise event attached to my gameObject"? Is my only option to create as many Sound SFX, Events, and Game Parameters as there are strings in my game?

If there's a way to do this, I'd love to hear about it urgently. Thanks!
asked Mar 31, 2017 in General Discussion by Nikita G. (100 points)

1 Answer

+1 vote

Via scripts... SetRTPCValue expects 3 arguments: RTPC name or ID, RTPC Value, and GameObjectID. If you leave GameObjectID default, it will set the RTPC globally. If you set GameObjectID to a specific object, it will only affect the RTPC for that game object. 

Via Wwise Authoring... Alternatively, you can create events in Wwise that set RTPC values. If you're using this method, pay close attention to the Event Action that sets the RTPC. It can be set to Global or Game Object under the scope column.


Hope this helps :) 

answered Apr 3, 2017 by Ian S. (1,710 points)