Exemple #1
0
 /// <summary>
 ///  A more reliable and explicit way of adding support for VST interfaces to a plugin (besides placing entries directly in our dictionary's initializer).
 /// </summary>
 public static void AddVstInterface <interfaceType>(VstConstructor constructor)
 {
     vstConstructorsByInterface.Add(typeof(interfaceType), constructor);
 }
Exemple #2
0
 /// <summary>
 ///  After figuring out the VST interface associated with the given class,
 ///  this method adds that interface to a dictionary
 ///  which `VstInterfaceManager` uses to let the VST host of the optional VST interfaces this plugin supports.
 /// </summary>
 public static void AddVstClass <classType>(Type interfaceType = null)
 {
     vstConstructorsByInterface.Add(interfaceType ?? __findVstInterface(typeof(classType)), VstConstructor.Get <classType>());
 }