30 lines
619 B
C
30 lines
619 B
C
#include <stddef.h>
|
|
#include "plugins.h"
|
|
#include "carla_host.h"
|
|
|
|
int plugin_load(const char *binary, const char *plugin_id, int *out_id)
|
|
{
|
|
if (!plugin_id) plugin_id = ""; // allow NULL
|
|
return carla_load(binary, plugin_id, out_id);
|
|
}
|
|
|
|
int plugin_unload(int id)
|
|
{
|
|
return carla_unload(id);
|
|
}
|
|
|
|
int plugin_connect(int id, const char *port_name, const char *looper_port)
|
|
{
|
|
return carla_connect(id, port_name, looper_port);
|
|
}
|
|
|
|
int plugin_disconnect(const char *from, const char *to)
|
|
{
|
|
return carla_disconnect(from, to);
|
|
}
|
|
|
|
void plugin_set_bypass(int id, bool bypass)
|
|
{
|
|
carla_set_bypass(id, bypass);
|
|
}
|