Add BasicUI::master_out() and BasicUI::monitor_out()

Towards removing the direct use of Session by surfaces.
This commit is contained in:
David Robillard 2021-06-15 19:59:23 -04:00
parent b35f9ca1a0
commit 0dc7cbba14
21 changed files with 72 additions and 55 deletions

View file

@ -828,3 +828,15 @@ BasicUI::config ()
{
return _session->config;
}
boost::shared_ptr<Stripable>
BasicUI::monitor_out () const
{
return _session->monitor_out ();
}
boost::shared_ptr<Stripable>
BasicUI::master_out () const
{
return _session->master_out ();
}

View file

@ -38,6 +38,7 @@
namespace ARDOUR {
class Route;
class Session;
class SessionConfiguration;
@ -172,6 +173,11 @@ class LIBCONTROLCP_API BasicUI {
const SessionConfiguration& config () const;
SessionConfiguration& config ();
/* Monitor/Master Out */
boost::shared_ptr<Stripable> monitor_out () const;
boost::shared_ptr<Stripable> master_out () const;
protected:
Session* _session;
};