diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-20 20:25:04 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-20 21:27:16 +0200 |
commit | e8822e76d605cd49e758225081bcef339de58224 (patch) | |
tree | 7bd6880b7a80203092a1c9543a2887eb3c4ea039 /libs/ardour/send.cc | |
parent | 361727716f873d1642adb9c5dfc7b882bd599b1f (diff) |
Add abstract API for latency compensated sends
This is in preparation for MixbusSends that are not derived from
Delivery : IOProcessor.
Diffstat (limited to 'libs/ardour/send.cc')
-rw-r--r-- | libs/ardour/send.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index 8e530efeba..950ee0b74d 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -49,7 +49,13 @@ using namespace ARDOUR; using namespace PBD; using namespace std; -PBD::Signal0<void> Send::ChangedLatency; +PBD::Signal0<void> LatentSend::ChangedLatency; + +LatentSend::LatentSend () + : _delay_in (0) + , _delay_out (0) +{ +} string Send::name_and_id_new_send (Session& s, Role r, uint32_t& bitslot, bool ignore_bitslot) @@ -83,8 +89,6 @@ Send::name_and_id_new_send (Session& s, Role r, uint32_t& bitslot, bool ignore_b Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMaster> mm, Role r, bool ignore_bitslot) : Delivery (s, p, mm, name_and_id_new_send (s, r, _bitslot, ignore_bitslot), r) , _metering (false) - , _delay_in (0) - , _delay_out (0) , _remove_on_disconnect (false) { if (_role == Listen) { @@ -198,7 +202,7 @@ Send::set_delay_in (samplecnt_t delay) } void -Send::set_delay_out (samplecnt_t delay) +Send::set_delay_out (samplecnt_t delay, size_t /*bus*/) { if (_delay_out == delay) { return; |