diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-01-27 18:48:33 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-01-27 18:48:33 +0000 |
commit | d116af22db3c0e0cf6aeff6194a689d8bfad7c8c (patch) | |
tree | c3d9888d5020d8e6bf02532ea06adc388d9033f5 /libs/ardour/ardour | |
parent | 85e8be3fa4f4910907d731a4591bf5e7d5135ca6 (diff) |
virtualize the way that AutomationController gets strings to display values, so that we can callback through the owner of an AutomationControl, not just rely on the value from the AutomationControl; make pan automation tracks use this to display more audio-centric values
git-svn-id: svn://localhost/ardour2/branches/3.0@8590 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/automatable.h | 1 | ||||
-rw-r--r-- | libs/ardour/ardour/pannable.h | 2 | ||||
-rw-r--r-- | libs/ardour/ardour/panner.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/automatable.h b/libs/ardour/ardour/automatable.h index c9e900e6a9..1abfb4faf1 100644 --- a/libs/ardour/ardour/automatable.h +++ b/libs/ardour/ardour/automatable.h @@ -63,6 +63,7 @@ public: virtual void transport_stopped (framepos_t now); virtual std::string describe_parameter(Evoral::Parameter param); + virtual std::string value_as_string (boost::shared_ptr<AutomationControl>) const; AutoState get_parameter_automation_state (Evoral::Parameter param); virtual void set_parameter_automation_state (Evoral::Parameter param, AutoState); diff --git a/libs/ardour/ardour/pannable.h b/libs/ardour/ardour/pannable.h index dff64cec4b..3dc4ccb8fd 100644 --- a/libs/ardour/ardour/pannable.h +++ b/libs/ardour/ardour/pannable.h @@ -65,6 +65,8 @@ struct Pannable : public PBD::Stateful, public Automatable, public SessionHandle return ((_auto_state & Write) || ((_auto_state & Touch) && touching())); } + std::string value_as_string (boost::shared_ptr<AutomationControl>) const; + void start_touch (double when); void stop_touch (bool mark, double when); bool touching() const { return g_atomic_int_get (&_touching); } diff --git a/libs/ardour/ardour/panner.h b/libs/ardour/ardour/panner.h index f43be2dbbc..c26d1a6a2c 100644 --- a/libs/ardour/ardour/panner.h +++ b/libs/ardour/ardour/panner.h @@ -93,6 +93,7 @@ class Panner : public PBD::Stateful, public PBD::ScopedConnectionList virtual std::set<Evoral::Parameter> what_can_be_automated() const; virtual std::string describe_parameter (Evoral::Parameter); + virtual std::string value_as_string (boost::shared_ptr<AutomationControl>) const; bool touching() const; |