X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpluginlv2client.h;h=f11629193e7840ff9dd15a8b7e3e6bc43c9dfd82;hp=1f5f3b356b426b6d962c287e61d27a567d804ca1;hb=refs%2Fheads%2Fmaster;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/cinelerra/pluginlv2client.h b/cinelerra-5.1/cinelerra/pluginlv2client.h index 1f5f3b35..11845c21 100644 --- a/cinelerra-5.1/cinelerra/pluginlv2client.h +++ b/cinelerra-5.1/cinelerra/pluginlv2client.h @@ -1,3 +1,21 @@ +/* + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published + * by the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + + #ifndef __PLUGINLV2CLIENT_H__ #define __PLUGINLV2CLIENT_H__ @@ -22,8 +40,8 @@ public: PluginLV2ParentUI *del_ui(PluginLV2Client *client); PluginLV2ParentUI *del_ui(PluginLV2ClientWindow *gui); PluginLV2ParentUI *add_ui(PluginLV2ParentUI *ui, PluginLV2Client *client); - PluginLV2ParentUI *search_ui(Plugin *plugin); - PluginLV2ParentUI *find_ui(Plugin *plugin); + PluginLV2ParentUI *search_ui(int plugin_id); + PluginLV2ParentUI *find_ui(int plugin_id); PluginLV2ParentUI *get_ui(PluginLV2Client *client); }; @@ -31,7 +49,7 @@ public: class PluginLV2ParentUI : public ForkParent { public: - PluginLV2ParentUI(Plugin *plugin); + PluginLV2ParentUI(int plugin_id); ~PluginLV2ParentUI(); ForkChild* new_fork(); void start_parent(PluginLV2Client *client); @@ -41,15 +59,11 @@ public: PluginLV2Client *client; PluginLV2ClientWindow *gui; + int plugin_id; int hidden; int show(); int hide(); -//from Plugin::identitical_location - int64_t position; - int set_no; - int track_no; - static PluginLV2UIs plugin_lv2; }; @@ -69,11 +83,11 @@ public: ~PluginLV2Client(); int process_realtime(int64_t size, - Samples *input_ptr, - Samples *output_ptr); + Samples **input_ptr, Samples **output_ptr, int chs); + int process_realtime(int64_t size, + Samples *input_ptr, Samples *output_ptr); int process_realtime(int64_t size, - Samples **input_ptr, - Samples **output_ptr); + Samples **input_ptr, Samples **output_ptr); // Update output pointers as well int is_realtime(); int is_multichannel(); @@ -86,7 +100,7 @@ public: int unload_buffer(int samples, Samples **output, int och); void process_buffer(int size); void update_gui(); - void update_lv2(); + void update_lv2(int token); int init_lv2(); PluginLV2ParentUI *find_ui(); PluginLV2ParentUI *get_ui();