diff options
author | Carl Hetherington <carl@carlh.net> | 2012-01-14 23:31:55 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-01-14 23:31:55 +0000 |
commit | 36ec03358fd3f124217416f3db67f9f1aba72aa9 (patch) | |
tree | 84bf5f4810f45ff1eb091f208b50d23b1afd191f /libs/ardour/internal_send.cc | |
parent | b087721d8aaf9470833414d01a72d826162946ab (diff) |
Remove thought-to-be-unnecessary setup of Delivery::_no_outs_cuz_we_no_monitor
at the start of each cycle; it is set up at the start of Route::process_output_buffers.
git-svn-id: svn://localhost/ardour2/branches/3.0@11247 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/internal_send.cc')
-rw-r--r-- | libs/ardour/internal_send.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/ardour/internal_send.cc b/libs/ardour/internal_send.cc index 4ddd064704..cb9043fcee 100644 --- a/libs/ardour/internal_send.cc +++ b/libs/ardour/internal_send.cc @@ -37,6 +37,8 @@ using namespace PBD; using namespace ARDOUR; using namespace std; +PBD::Signal1<void, pframes_t> InternalSend::CycleStart; + InternalSend::InternalSend (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMaster> mm, boost::shared_ptr<Route> sendto, Delivery::Role role) : Send (s, p, mm, role) { @@ -47,6 +49,8 @@ InternalSend::InternalSend (Session& s, boost::shared_ptr<Pannable> p, boost::sh } init_gain (); + + CycleStart.connect_same_thread (*this, boost::bind (&InternalSend::cycle_start, this, _1)); } InternalSend::~InternalSend () @@ -356,9 +360,7 @@ InternalSend::set_can_pan (bool yn) void InternalSend::cycle_start (pframes_t nframes) { - Delivery::cycle_start (nframes); - for (BufferSet::audio_iterator b = mixbufs.audio_begin(); b != mixbufs.audio_end(); ++b) { - (*b).prepare (); + b->prepare (); } } |