Ejemplo n.º 1
0
 /// <description>
 /// Attach<paramref name="" /> parameter to the source,
 ///
 /// Once attached, the source will react to value changes of the given
 /// </description>
 /// <param name="parameter">The parameter to attach to the source.</param>
 public void AddParameter(SFXParameter parameter)
 {
     InternalUnsafeMethods.AddParameter__Args _args = new InternalUnsafeMethods.AddParameter__Args()
     {
         parameter = parameter.ObjectPtr,
     };
     InternalUnsafeMethods.AddParameter()(ObjectPtr, _args);
 }
Ejemplo n.º 2
0
 /// <description>
 /// Called when a parameter attached to the source changes value.
 /// This callback will be triggered before the value change has actually been applied to the source.
 /// </description>
 /// <param name="parameter">The parameter that has changed value.</param>
 /// <remarks> This is also triggered when the parameter is first attached to the source.</remarks>
 public virtual void OnParameterValueChange(SFXParameter parameter)
 {
     InternalUnsafeMethods.OnParameterValueChange__Args _args = new InternalUnsafeMethods.OnParameterValueChange__Args()
     {
         parameter = parameter.ObjectPtr,
     };
     InternalUnsafeMethods.OnParameterValueChange()(ObjectPtr, _args);
 }