summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-10 00:09:25 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-10 00:09:25 +0000
commit3cce57d490ad51845b8447ba5630b8d2820d541b (patch)
treed0e5b930f0b6f31ec7e50e1da307f6dfee1e6ddc /gtk2_ardour/route_ui.cc
parenteaed7cfe25e3480defbae8ac926bda5d9dc789be (diff)
Give mixer strips panners and a mono button based on the type of its outputs, not of its track.
git-svn-id: svn://localhost/ardour2/branches/3.0@7581 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r--gtk2_ardour/route_ui.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc
index 1cbdadbe05..c56bde907d 100644
--- a/gtk2_ardour/route_ui.cc
+++ b/gtk2_ardour/route_ui.cc
@@ -1508,6 +1508,12 @@ RouteUI::midi_track() const
return boost::dynamic_pointer_cast<MidiTrack>(_route);
}
+bool
+RouteUI::has_audio_outputs () const
+{
+ return (_route->n_outputs().n_audio() > 0);
+}
+
string
RouteUI::name() const
{