/// <summary> /// To be called from the default constructor of the derived plugin class /// to initialize the base class. /// </summary> /// <param name="name">The name of the plugin. Must not be null. <seealso cref="Name"/></param> /// <param name="productInfo">The product information of the plugin. Must not be null. <seealso cref="ProductInfo"/></param> /// <param name="category">The plugin category. <seealso cref="Category"/></param> /// <param name="capabilities">The plugin capabilities <seealso cref="Capabilities"/>.</param> /// <param name="initialDelay">The initial delay of the plugin. <seealso cref="InitialDelay"/></param> /// <param name="pluginID">The unique Id of the plugin. <seealso cref="PluginID"/></param> /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="productInfo"/> or <paramref name="name"/> is not set to an instance of an object.</exception> /// <exception cref="System.ArgumentException">Thrown when <paramref name="name"/> is an empty string.</exception> protected VstPluginWithInterfaceManagerBase(string name, VstProductInfo productInfo, VstPluginCategory category, VstPluginCapabilities capabilities, int initialDelay, int pluginID) { Throw.IfArgumentIsNull(productInfo, "productInfo"); Throw.IfArgumentIsNullOrEmpty(name, "name"); ProductInfo = productInfo; Name = name; Category = category; Capabilities = capabilities; InitialDelay = initialDelay; PluginID = pluginID; }
/// <summary> /// To be called from the default constructor of the derived plugin class /// to initialize the base class. /// </summary> /// <param name="name">The name of the plugin. Must not be null. <seealso cref="Name"/></param> /// <param name="productInfo">The product information of the plugin. Must not be null. <seealso cref="ProductInfo"/></param> /// <param name="category">The plugin category. <seealso cref="Category"/></param> /// <param name="capabilities">The plugin capabilities <seealso cref="Capabilities"/>.</param> /// <param name="initialDelay">The initial delay of the plugin. <seealso cref="InitialDelay"/></param> /// <param name="pluginID">The unique Id of the plugin. <seealso cref="PluginID"/></param> /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="productInfo"/> or <paramref name="name"/> is not set to an instance of an object.</exception> /// <exception cref="System.ArgumentException">Thrown when <paramref name="name"/> is an empty string.</exception> protected VstPluginBase(string name, VstProductInfo productInfo, VstPluginCategory category, VstPluginCapabilities capabilities, int initialDelay, int pluginID) { Throw.IfArgumentIsNull(productInfo, "productInfo"); Throw.IfArgumentIsNullOrEmpty(name, "name"); ProductInfo = productInfo; Name = name; Category = category; Capabilities = capabilities; InitialDelay = initialDelay; PluginID = pluginID; }
/// <summary> /// To be called from the default constructor of the derived plugin class /// to initialize the base class. /// </summary> /// <param name="name">The name of the plugin. Must not be null. <seealso cref="Name"/></param> /// <param name="productInfo">The product information of the plugin. Must not be null. <seealso cref="ProductInfo"/></param> /// <param name="category">The plugin category. <seealso cref="Category"/></param> /// <param name="capabilities">The plugin capabilities <seealso cref="Capabilities"/>.</param> /// <param name="initialDelay">The initial delay of the plugin. <seealso cref="InitialDelay"/></param> /// <param name="pluginID">The unique Id of the plugin. <seealso cref="PluginID"/></param> /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="productInfo"/> or <paramref name="name"/> is not set to an instance of an object.</exception> /// <exception cref="System.ArgumentException">Thrown when <paramref name="name"/> is an empty string.</exception> protected VstPlugin(string name, int pluginID, VstProductInfo productInfo, VstPluginCategory category, int initialDelay = 0, VstPluginCapabilities capabilities = VstPluginCapabilities.None) { Throw.IfArgumentIsNull(productInfo, nameof(productInfo)); Throw.IfArgumentIsNullOrEmpty(name, nameof(name)); ProductInfo = productInfo; Name = name; Category = category; Capabilities = capabilities; InitialDelay = initialDelay; PluginID = pluginID; }
/// <inheritdoc/> protected VstPluginWithServices(string name, int pluginID, VstProductInfo productInfo, VstPluginCategory category, int initialDelay = 0, VstPluginCapabilities capabilities = VstPluginCapabilities.None) : base(name, pluginID, productInfo, category, initialDelay, capabilities) { }
protected SyntagePlugin(string name, VstProductInfo productInfo, VstPluginCategory category, VstPluginCapabilities capabilities, int initialDelay, int pluginID) : base(name, productInfo, category, capabilities, initialDelay, pluginID) { ParametersManager = new ParametersManager(); }