The VST needs a way to get the parent PluginInserts's channel-map :(
namespace ARDOUR {
+class PluginInsert;
+
/** Parent class for VST plugins of both Windows and Linux varieties */
class LIBARDOUR_API VSTPlugin : public Plugin
{
int first_user_preset_index () const;
+ void set_insert (PluginInsert* pi, uint32_t num) { _pi = pi; _num = num; }
+ PluginInsert* plugin_insert () const { return _pi; }
+ uint32_t plugin_number () const { return _num; }
+
protected:
void set_plugin (AEffect *);
gchar* get_chunk (bool) const;
VSTHandle* _handle;
VSTState* _state;
AEffect* _plugin;
+ PluginInsert* _pi;
+ uint32_t _num;
MidiBuffer* _midi_out_buf;
};
, _handle (handle)
, _state (0)
, _plugin (0)
+ , _pi (0)
+ , _num (0)
{
}