26 #include "lv_plugin_registry.h"
32 get_input_plugin_list ()
39 VisInput *visual_input_new (
const char *name)
43 LV::intrusive_ptr_add_ref (
self.
get ());
49 void visual_input_ref (
VisInput *
self)
51 visual_return_if_fail (
self !=
nullptr);
53 LV::intrusive_ptr_add_ref (
self);
56 void visual_input_unref (
VisInput *
self)
58 visual_return_if_fail (
self !=
nullptr);
60 LV::intrusive_ptr_release (
self);
63 int visual_input_realize (
VisInput *
self)
65 visual_return_val_if_fail (
self !=
nullptr, FALSE);
67 return self->realize ();
70 int visual_input_run (
VisInput *
self)
72 visual_return_val_if_fail (
self !=
nullptr, FALSE);
77 VisPluginData *visual_input_get_plugin (
VisInput *
self)
79 visual_return_val_if_fail (
self !=
nullptr,
nullptr);
81 return self->get_plugin ();
86 visual_return_val_if_fail (
self !=
nullptr,
nullptr);
88 return const_cast<VisAudio *
> (&
self->get_audio ());
93 using namespace std::placeholders;
95 visual_return_if_fail (
self !=
nullptr);
96 visual_return_if_fail (callback);
98 auto get_audio_ptr = [=] (
LV::Audio& audio) {
return &audio; };
100 self->set_callback (std::bind (callback,
self, std::bind (get_audio_ptr, _1), user_data));