/// <summary> /// Sets the specified audio parameter with the specified name to the specified value /// </summary> /// <param name="parameterName"></param> /// <param name="parameterVal"></param> public static void SetParameter(string parameterName, float parameterVal) { uint audioParameterId = NativeAudioSystem.GetAudioParameterId(parameterName); if (audioParameterId != Audio.InvalidControlId) { NativeAudioSystem.SetAudioParameter(audioParameterId, parameterVal); } }