I’m new to FMOD. Quick and simple question - should I be able to do:
soundEmitter.SetParameter(switchParameterId, switchIsUp ? 0 : 1); // soundEmitter is a StudioEventEmitter soundEmitter.Play();
As I flip a switch in my game and have it work? Because it only works some of the time… it seems like the parameter is not always getting updated. It IS updating sometimes. If I put the SetParameter() line into Update(), it works every time. But then it’s constantly updating that parameter for every light switch in the game which is obviously undesirable.
FMOD Studio 2.02.05 and Unity 2021.2.7f1