Hello,
I'm having trouble getting Unity to respond to either an event or RTPC. The RTPC is used to switch between layers of interactive music tracks that are housed in the same segment,playlist, switch container. It works fine within Wwise's soundcaster window but i cant get it to work within Unity.
The code I've written is simple. Although I'm relatively new to it, so there may be an error there.
if(Input.GetKeyDown(KeyCode.J))
AkSoundEngine.SetRTPCValue ("Time_Reverse", 29, GameObject.Find ("WwiseGlobal"));
else
AkSoundEngine.SetRTPCValue ("Time_Reverse", 5, GameObject.Find ("WwiseGlobal"));
if (Input.GetKeyDown (KeyCode.J))
print ("J is pressed");
The game run's without any compiler errors and the Debug log prints "J is pressed". The track's music plays however i cannot get it to switch to the second layer.
I'm not sure where i've made a mistake and hours of googling haven't got anywhere.
Thanks in Advance