From d116af22db3c0e0cf6aeff6194a689d8bfad7c8c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 27 Jan 2011 18:48:33 +0000 Subject: 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 --- libs/ardour/pannable.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'libs/ardour/pannable.cc') 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 ac) const +{ + if (_panner) { + return _panner->value_as_string (ac); + } - - + return Automatable::value_as_string (ac); +} -- cgit v1.2.3