projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplify PresentationInfo concept of order so that it is always global
[ardour.git]
/
libs
/
ardour
/
ardour
/
vst_plugin.h
diff --git
a/libs/ardour/ardour/vst_plugin.h
b/libs/ardour/ardour/vst_plugin.h
index d77d3801aa0dbc4169bd75fb907ba1a664b89771..3440534eb992f4a501c62cfd6908c5b65323a530 100644
(file)
--- a/
libs/ardour/ardour/vst_plugin.h
+++ b/
libs/ardour/ardour/vst_plugin.h
@@
-29,8
+29,12
@@
typedef struct _VSTHandle VSTHandle;
struct _VSTState;
typedef struct _VSTState VSTState;
struct _VSTState;
typedef struct _VSTState VSTState;
+#include "ardour/vestige/aeffectx.h"
+
namespace ARDOUR {
namespace ARDOUR {
+class PluginInsert;
+
/** Parent class for VST plugins of both Windows and Linux varieties */
class LIBARDOUR_API VSTPlugin : public Plugin
{
/** Parent class for VST plugins of both Windows and Linux varieties */
class LIBARDOUR_API VSTPlugin : public Plugin
{
@@
-42,6
+46,7
@@
public:
void deactivate ();
int set_block_size (pframes_t);
void deactivate ();
int set_block_size (pframes_t);
+ bool inplace_broken() const { return true; }
float default_value (uint32_t port);
float get_parameter (uint32_t port) const;
uint32_t nth_parameter (uint32_t port, bool& ok) const;
float default_value (uint32_t port);
float get_parameter (uint32_t port) const;
uint32_t nth_parameter (uint32_t port, bool& ok) const;
@@
-80,6
+85,12
@@
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; }
+ VstTimeInfo* timeinfo () { return &_timeInfo; }
+
+
protected:
void set_plugin (AEffect *);
gchar* get_chunk (bool) const;
protected:
void set_plugin (AEffect *);
gchar* get_chunk (bool) const;
@@
-96,8
+107,11
@@
protected:
VSTHandle* _handle;
VSTState* _state;
AEffect* _plugin;
VSTHandle* _handle;
VSTState* _state;
AEffect* _plugin;
+ PluginInsert* _pi;
+ uint32_t _num;
MidiBuffer* _midi_out_buf;
MidiBuffer* _midi_out_buf;
+ VstTimeInfo _timeInfo;
};
}
};
}