fix a couple of stupid mistakes from last merging
This commit is contained in:
parent
b4029257c2
commit
f86df2a4a2
@ -285,15 +285,14 @@ static LV2_Handle instantiate(const struct LV2_Descriptor * descriptor, double s
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
plugin_callbacks cbs = {
|
cbs.handle = (void *)instance;
|
||||||
/* .handle = */ (void *)instance,
|
cbs.format = "lv2";
|
||||||
/* .format = */ "lv2",
|
cbs.get_bindir = get_bundle_path_cb;
|
||||||
/* .get_bindir = */ get_bundle_path_cb,
|
cbs.get_datadir = get_bundle_path_cb;
|
||||||
/* .get_datadir = */ get_bundle_path_cb,
|
|
||||||
#ifdef DATA_MESSAGING
|
#ifdef DATA_MESSAGING
|
||||||
/* .send_to_ui = */ send_to_ui
|
cbs.send_to_ui = send_to_ui;
|
||||||
#endif
|
#endif
|
||||||
};
|
|
||||||
plugin_init(&instance->p, &cbs);
|
plugin_init(&instance->p, &cbs);
|
||||||
|
|
||||||
instance->sample_rate = (float)sample_rate;
|
instance->sample_rate = (float)sample_rate;
|
||||||
@ -782,7 +781,7 @@ static LV2UI_Handle ui_instantiate(const LV2UI_Descriptor * descriptor, const ch
|
|||||||
# ifdef DATA_MESSAGING
|
# ifdef DATA_MESSAGING
|
||||||
cbs.send_to_dsp = send_to_dsp;
|
cbs.send_to_dsp = send_to_dsp;
|
||||||
# endif
|
# endif
|
||||||
};
|
|
||||||
# if DATA_PRODUCT_CONTROL_INPUTS_N > 0
|
# if DATA_PRODUCT_CONTROL_INPUTS_N > 0
|
||||||
instance->write = write_function;
|
instance->write = write_function;
|
||||||
instance->controller = controller;
|
instance->controller = controller;
|
||||||
|
Loading…
Reference in New Issue
Block a user