summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/controls.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-09 00:03:58 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-09 00:03:58 +0000
commit7ab25511b541190ae2d9b1dc957507effa59cb35 (patch)
tree3eb5b9367285da290a066b99a1e191843abf5039 /libs/surfaces/mackie/controls.cc
parent89aed48f92a673f5bd3f5129602fcff9ecbed103 (diff)
MCP: possible support for metering (really)
git-svn-id: svn://localhost/ardour2/branches/3.0@11843 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/controls.cc')
-rw-r--r--libs/surfaces/mackie/controls.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/controls.cc b/libs/surfaces/mackie/controls.cc
index 42bcc3a09b..d3d63efb85 100644
--- a/libs/surfaces/mackie/controls.cc
+++ b/libs/surfaces/mackie/controls.cc
@@ -184,6 +184,15 @@ Strip::fader_touch()
return *_fader_touch;
}
+Meter&
+Strip::meter()
+{
+ if (_meter == 0) {
+ throw MackieControlException ("meter is null");
+ }
+ return *_meter;
+}
+
/** @return true if the control is in use, or false otherwise.
Buttons are `in use' when they are held down.
Faders with touch support are `in use' when they are being touched.