public void UnloadPlugin(Plugin plugin) { if (plugin != null) { currentResult = NativeMethods.FMOD_System_UnloadPlugin(handle, plugin.Type, plugin.Id); } else throw new ArgumentNullException("plugin"); }
public void LoadPlugin(Plugin plugin) { if (plugin != null) { PluginType type = plugin.Type; int id = plugin.Id; currentResult = NativeMethods.FMOD_System_LoadPlugin(handle, plugin.FileName, ref type, ref id); } else throw new ArgumentNullException("plugin"); }