diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-21 03:43:21 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-21 19:46:39 +0100 |
commit | 386264bd235a042d5d46550b04f6bdbdc3aac54b (patch) | |
tree | 0af81b922f1077778063e43384d634ff5cd14cf4 /libs/ardour/ardour/panner.h | |
parent | 60bcefd03dc020afd206ce59a38ebb9a569dc3b2 (diff) |
Pan: consolidate what_can_be_automated API
Diffstat (limited to 'libs/ardour/ardour/panner.h')
-rw-r--r-- | libs/ardour/ardour/panner.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/ardour/panner.h b/libs/ardour/ardour/panner.h index c1f925df92..f328b7818b 100644 --- a/libs/ardour/ardour/panner.h +++ b/libs/ardour/ardour/panner.h @@ -110,8 +110,6 @@ public: void set_automation_state (AutoState); AutoState automation_state() const; - virtual std::set<Evoral::Parameter> what_can_be_automated() const; - bool touching() const; /** @@ -145,8 +143,16 @@ public: protected: friend PanControllable; + friend Pannable; // allow what_can_be_automated + boost::shared_ptr<Pannable> _pannable; + std::set<Evoral::Parameter> _can_automate_list; + + const std::set<Evoral::Parameter>& what_can_be_automated() const { + return _can_automate_list; + } + virtual std::string value_as_string (boost::shared_ptr<const AutomationControl>) const = 0; virtual void distribute_one (AudioBuffer&, BufferSet& obufs, gain_t gain_coeff, pframes_t nframes, uint32_t which) = 0; |