summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/send.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-09-29 04:06:40 +0200
committerRobin Gareus <robin@gareus.org>2017-09-29 05:03:48 +0200
commit9f9e948d845382c8f74e67034fd8beb1704bba78 (patch)
tree6d288976b2a4deee215a733507bc3258e136c879 /libs/ardour/ardour/send.h
parentddd4e3cf1d9e253f638719ca0664a0598383e857 (diff)
Update Send: Include internal 'thru' delay-line
This allows to push latency upstream and delay the source in case the destination has a longer latency. Also add a signal to notify the Session in case this happens, intended to queue a latency-recompute.
Diffstat (limited to 'libs/ardour/ardour/send.h')
-rw-r--r--libs/ardour/ardour/send.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/libs/ardour/ardour/send.h b/libs/ardour/ardour/send.h
index c0111936e5..8d9cdaa0af 100644
--- a/libs/ardour/ardour/send.h
+++ b/libs/ardour/ardour/send.h
@@ -67,11 +67,13 @@ class LIBARDOUR_API Send : public Delivery
bool configure_io (ChanCount in, ChanCount out);
/* latency compensation */
- void set_output_latency (samplecnt_t cnt);
- void set_delay_in (samplecnt_t);
- void set_delay_out (samplecnt_t);
+ void set_delay_in (samplecnt_t); // should only be called by Route::update_signal_latency
+ void set_delay_out (samplecnt_t); // should only be called by InternalReturn::set_playback_offset (via Route::update_signal_latency)
samplecnt_t get_delay_in () const { return _delay_in; }
samplecnt_t get_delay_out () const { return _delay_out; }
+ samplecnt_t signal_latency () const;
+
+ static PBD::Signal0<void> ChangedLatency;
void activate ();
void deactivate ();
@@ -86,14 +88,18 @@ class LIBARDOUR_API Send : public Delivery
boost::shared_ptr<GainControl> _gain_control;
boost::shared_ptr<Amp> _amp;
boost::shared_ptr<PeakMeter> _meter;
- boost::shared_ptr<DelayLine> _delayline;
+ boost::shared_ptr<DelayLine> _send_delay;
+ boost::shared_ptr<DelayLine> _thru_delay;
private:
/* disallow copy construction */
Send (const Send&);
+
void panshell_changed ();
void snd_output_changed (IOChange, void*);
+ void update_delaylines ();
+
int set_state_2X (XMLNode const &, int);
uint32_t _bitslot;