prepare VST plugins for reporting connected pins
The VST needs a way to get the parent PluginInserts's channel-map :(
This commit is contained in:
parent
c5906ca471
commit
e8366dbd83
@ -31,6 +31,8 @@ typedef struct _VSTState VSTState;
|
|||||||
|
|
||||||
namespace ARDOUR {
|
namespace ARDOUR {
|
||||||
|
|
||||||
|
class PluginInsert;
|
||||||
|
|
||||||
/** Parent class for VST plugins of both Windows and Linux varieties */
|
/** Parent class for VST plugins of both Windows and Linux varieties */
|
||||||
class LIBARDOUR_API VSTPlugin : public Plugin
|
class LIBARDOUR_API VSTPlugin : public Plugin
|
||||||
{
|
{
|
||||||
@ -81,6 +83,10 @@ public:
|
|||||||
|
|
||||||
int first_user_preset_index () const;
|
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:
|
protected:
|
||||||
void set_plugin (AEffect *);
|
void set_plugin (AEffect *);
|
||||||
gchar* get_chunk (bool) const;
|
gchar* get_chunk (bool) const;
|
||||||
@ -97,6 +103,8 @@ protected:
|
|||||||
VSTHandle* _handle;
|
VSTHandle* _handle;
|
||||||
VSTState* _state;
|
VSTState* _state;
|
||||||
AEffect* _plugin;
|
AEffect* _plugin;
|
||||||
|
PluginInsert* _pi;
|
||||||
|
uint32_t _num;
|
||||||
|
|
||||||
MidiBuffer* _midi_out_buf;
|
MidiBuffer* _midi_out_buf;
|
||||||
};
|
};
|
||||||
|
@ -44,6 +44,8 @@ VSTPlugin::VSTPlugin (AudioEngine& engine, Session& session, VSTHandle* handle)
|
|||||||
, _handle (handle)
|
, _handle (handle)
|
||||||
, _state (0)
|
, _state (0)
|
||||||
, _plugin (0)
|
, _plugin (0)
|
||||||
|
, _pi (0)
|
||||||
|
, _num (0)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user