internal static void AddPlugin(Plugin plugin) { _loadedPlugins.Add(plugin); PluginLoaded?.Invoke(new PluginEventArgs(plugin.PluginType)); }
internal static void RemovePlugin(Plugin plugin) { _loadedPlugins.Remove(plugin); PluginFreed?.Invoke(new PluginEventArgs(plugin.PluginType)); }
/// <summary> /// Free a Bass plug-in. /// </summary> /// <param name="plugin">Bass plug-in object.</param> public static void FreePlugin(Plugin plugin) { plugin?.Dispose(); }