diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-18 20:21:51 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-18 20:21:51 +0000 |
commit | ca84e02b48e0c36755963a35713d272c409d9317 (patch) | |
tree | 90f637b7a67431a75fe587fc8ddfee6d04b24de4 /libs/ardour/delivery.cc | |
parent | 065b5ce8e7c0328153d087aa0209dbe6cb744d54 (diff) |
fix (?) capture alignment by making sure we use non-public latency information for playback latency, thus avoiding counting plugin latency twice
git-svn-id: svn://localhost/ardour2/branches/3.0@9168 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/delivery.cc')
-rw-r--r-- | libs/ardour/delivery.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/ardour/delivery.cc b/libs/ardour/delivery.cc index dfc38d761d..efdb4d9ad0 100644 --- a/libs/ardour/delivery.cc +++ b/libs/ardour/delivery.cc @@ -62,6 +62,7 @@ Delivery::Delivery (Session& s, boost::shared_ptr<IO> io, boost::shared_ptr<Pann , _no_outs_cuz_we_no_monitor (false) , _mute_master (mm) , no_panner_reset (false) + , scnt (0) { _panshell = boost::shared_ptr<PannerShell>(new PannerShell (_name, _session, pannable)); _display_to_user = false; @@ -83,6 +84,7 @@ Delivery::Delivery (Session& s, boost::shared_ptr<Pannable> pannable, boost::sha , _no_outs_cuz_we_no_monitor (false) , _mute_master (mm) , no_panner_reset (false) + , scnt (0) { _panshell = boost::shared_ptr<PannerShell>(new PannerShell (_name, _session, pannable)); _display_to_user = false; @@ -280,6 +282,21 @@ Delivery::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pf panner = _panshell->panner(); +#if 0 + if (_session.transport_rolling()) { + cerr << name() << " first value written : " << scnt << endl; + for (BufferSet::audio_iterator b = bufs.audio_begin(); b != bufs.audio_end(); ++b) { + Sample* p = b->data (); + float s = (float) scnt; + for (pframes_t n = 0; n < nframes; ++n) { + p[n] = s * 0.001; + s += 1.0; + } + } + scnt += nframes; + } +#endif + if (panner && !panner->bypassed()) { // Use the panner to distribute audio to output port buffers |