diff options
author | Robin Gareus <robin@gareus.org> | 2019-02-28 04:46:25 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-02-28 04:49:00 +0100 |
commit | 5d4fbcb1eae6e9b01cd32ff7e4470559bfd66b89 (patch) | |
tree | 1f5aa83ee5f029df7e174ad170136143a2c50573 /libs/ardour/ardour/plugin.h | |
parent | 2ee2b8481c50782faa54c306267a5800f9d5ddee (diff) |
Allow to special case plugins used for IR analysis
This is relevant for some VST specifics (e.g connected pins) or
similar audioMasterCallbacks that use either global or plugin-insert
specific data.
Diffstat (limited to 'libs/ardour/ardour/plugin.h')
-rw-r--r-- | libs/ardour/ardour/plugin.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h index b8d1cd76c0..60a6db3ab2 100644 --- a/libs/ardour/ardour/plugin.h +++ b/libs/ardour/ardour/plugin.h @@ -293,6 +293,8 @@ class LIBARDOUR_API Plugin : public PBD::StatefulDestructible, public HasLatency virtual void set_owner (SessionObject* o) { _owner = o; } SessionObject* owner() const { return _owner; } + void use_for_impulse_analysis () { _for_impulse_analysis = true; } + ARDOUR::AudioEngine& engine() const { return _engine; } ARDOUR::Session& session() const { return _session; } @@ -364,13 +366,14 @@ protected: /** Do the actual removal of a preset of the provided name */ virtual void do_remove_preset (std::string) = 0; - ARDOUR::AudioEngine& _engine; - ARDOUR::Session& _session; - PluginInfoPtr _info; - uint32_t _cycles; - std::map<std::string, PresetRecord> _presets; + ARDOUR::AudioEngine& _engine; + ARDOUR::Session& _session; + PluginInfoPtr _info; + uint32_t _cycles; + SessionObject* _owner; + bool _for_impulse_analysis; - SessionObject* _owner; + std::map<std::string, PresetRecord> _presets; private: |