diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-24 00:25:24 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-24 00:57:15 +0200 |
commit | 135814cf0db708421e784c10a4cf9bbba104e7e1 (patch) | |
tree | abf5d295f032ba03918f0951f9fb4d901b346581 /libs/ardour/send.cc | |
parent | 0719df9d21334ad1415b5e9712bb343b884233ea (diff) |
Expose pan-link via Send API, emit signal on change
Diffstat (limited to 'libs/ardour/send.cc')
-rw-r--r-- | libs/ardour/send.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index d96bc2db58..283e8d3259 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -434,6 +434,30 @@ Send::set_state_2X (const XMLNode& node, int /* version */) } bool +Send::has_panner () const +{ + /* see InternalSend::run() and Delivery::run */ + if (_panshell && role () != Listen && _panshell->panner()) { + return true; // !_panshell->bypassed () + } + return false; +} + +bool +Send::panner_linked_to_route () const +{ + return _panshell ? _panshell->is_linked_to_route() : false; +} + +void +Send::set_panner_linked_to_route (bool onoff) { + if (_panshell) { + _panshell->set_linked_to_route (onoff); + PropertyChanged (PBD::PropertyChange ()); /* EMIT SIGNAL */ + } +} + +bool Send::can_support_io_configuration (const ChanCount& in, ChanCount& out) { /* sends have no impact at all on the channel configuration of the |