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/pannable.cc | |
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/pannable.cc')
-rw-r--r-- | libs/ardour/pannable.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/ardour/pannable.cc b/libs/ardour/pannable.cc index 4243ab45df..1e2d5f5594 100644 --- a/libs/ardour/pannable.cc +++ b/libs/ardour/pannable.cc @@ -23,9 +23,11 @@ #include "ardour/automation_control.h" #include "ardour/automation_list.h" #include "ardour/pannable.h" +#include "ardour/panner.h" #include "ardour/pan_controllable.h" #include "ardour/session.h" +using namespace std; using namespace PBD; using namespace ARDOUR; @@ -245,6 +247,12 @@ Pannable::set_state (const XMLNode& root, int /*version - not used*/) return 0; } +string +Pannable::value_as_string (boost::shared_ptr<AutomationControl> ac) const +{ + if (_panner) { + return _panner->value_as_string (ac); + } - - + return Automatable::value_as_string (ac); +} |