Hopefully someone can answer another dsp related question:
I created a RPC and a global variable named "MyEffect" to control it with.
I've also associated the sound in my cue to the RPC.
Now in my code, I'm just trying to change the values of my global variable upon a keypress.
But when trying to set it to 75, I keep getting an IndexOutOfRange Exception, even though "MyEffect" has a range of 0-100.
| engineSound = soundBank.GetCue("acue"); |
engineSound.SetVariable("MyEffect",75.0f); //this line throws the IndexOutOfRange Exception
|
| engineSound.Play(); |
Any help would be appreciated.