1 #ifndef ATTACHMENTPOINT_H
2 #define ATTACHMENTPOINT_H
6 #include "floatauto.inc"
7 #include "floatautos.inc"
9 #include "messages.inc"
11 #include "pluginserver.inc"
12 #include "renderengine.inc"
13 #include "sharedlocation.h"
15 #include "virtualnode.inc"
19 // Attachment points for Modules to attach plugins
23 AttachmentPoint(RenderEngine
*renderengine
,
26 virtual ~AttachmentPoint();
28 virtual int reset_parameters();
29 // Used by Module::swap_attachments before virtual console expansion.
30 // Return 1 if the plugin id is the same
31 int identical(AttachmentPoint
*old
);
33 // Move new_virtual_plugins to virtual_plugins.
34 // Called after virtual console expansion.
37 // Cause plugins to free any resources which are required after stopping
40 // Called before every buffer processing
43 // Attach a virtual plugin for realtime playback. Returns the number
44 // of the buffer assigned to a multichannel plugin.
45 int attach_virtual_plugin(VirtualNode
*virtual_plugin
);
46 virtual void delete_buffer_vector() {};
48 // return 0 if ready to render
49 // check all the virtual plugins for waiting status
50 // all virtual plugins attached to this must be waiting for a render
51 // int sort(VirtualNode *virtual_plugin);
52 // Called by plugin server to render GUI with data.
53 void render_gui(void *data
);
54 void render_gui(void *data
, int size
);
56 virtual int get_buffer_size() { return 0; };
58 // For unshared plugins, virtual plugins to send configuration events to and
60 // For shared plugins, virtual plugins to allocate buffers for and read
62 ArrayList
<VirtualNode
*> virtual_plugins
;
64 // List for a new virtual console which is transferred to virtual_plugins after
65 // virtual console expansion.
66 ArrayList
<VirtualNode
*> new_virtual_plugins
;
68 // Plugin servers to do signal processing
69 ArrayList
<PluginServer
*> plugin_servers
;
71 // renderengine Plugindb entry
72 PluginServer
*plugin_server
;
73 // Pointer to the plugin object in EDL
75 // ID of plugin object in EDL
77 RenderEngine
*renderengine
;
78 // Current input buffer being loaded. Determines when the plugin server is run
79 // int current_buffer;
81 // Status of last buffer processed.
82 // Used in shared multichannel plugin to tell of it's already been processed
83 // or needs to be processed again for a different target.
84 // start_position is the end of the range if playing in reverse.
85 int64_t start_position
;
102 int multichannel_shared(int search_new
);