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
This commit is contained in:
Carl Hetherington 2012-01-14 23:31:55 +00:00
parent b087721d8a
commit 36ec03358f
5 changed files with 9 additions and 19 deletions

View File

@ -74,7 +74,6 @@ public:
void flush_buffers (framecnt_t nframes, framepos_t time);
void no_outs_cuz_we_no_monitor(bool);
virtual void cycle_start (pframes_t);
void transport_stopped (framepos_t frame);
void realtime_locate ();
@ -82,8 +81,6 @@ public:
PBD::Signal0<void> MuteChange;
static PBD::Signal1<void, pframes_t> CycleStart;
XMLNode& state (bool full);
int set_state (const XMLNode&, int version);

View File

@ -56,6 +56,8 @@ class InternalSend : public Send
void set_can_pan (bool yn);
uint32_t pan_outs () const;
static PBD::Signal1<void, pframes_t> CycleStart;
private:
BufferSet mixbufs;
boost::shared_ptr<Route> _send_to;

View File

@ -43,9 +43,9 @@
#include "ardour/buffer.h"
#include "ardour/buffer_set.h"
#include "ardour/cycle_timer.h"
#include "ardour/delivery.h"
#include "ardour/event_type_map.h"
#include "ardour/internal_return.h"
#include "ardour/internal_send.h"
#include "ardour/io.h"
#include "ardour/meter.h"
#include "ardour/midi_port.h"
@ -479,7 +479,7 @@ AudioEngine::process_callback (pframes_t nframes)
/* tell all relevant objects that we're starting a new cycle */
Delivery::CycleStart (nframes);
InternalSend::CycleStart (nframes);
Port::set_global_port_buffer_offset (0);
Port::set_cycle_framecnt (nframes);

View File

@ -47,7 +47,6 @@ using namespace std;
using namespace PBD;
using namespace ARDOUR;
PBD::Signal1<void, pframes_t> Delivery::CycleStart;
PBD::Signal0<int> Delivery::PannersLegal;
bool Delivery::panners_legal = false;
@ -72,8 +71,6 @@ Delivery::Delivery (Session& s, boost::shared_ptr<IO> io, boost::shared_ptr<Pann
if (_output) {
_output->changed.connect_same_thread (*this, boost::bind (&Delivery::output_changed, this, _1, _2));
}
CycleStart.connect_same_thread (*this, boost::bind (&Delivery::cycle_start, this, _1));
}
/* deliver to a new IO object */
@ -96,8 +93,6 @@ Delivery::Delivery (Session& s, boost::shared_ptr<Pannable> pannable, boost::sha
if (_output) {
_output->changed.connect_same_thread (*this, boost::bind (&Delivery::output_changed, this, _1, _2));
}
CycleStart.connect_same_thread (*this, boost::bind (&Delivery::cycle_start, this, _1));
}
@ -133,12 +128,6 @@ Delivery::display_name () const
}
}
void
Delivery::cycle_start (pframes_t /*nframes*/)
{
_no_outs_cuz_we_no_monitor = false;
}
bool
Delivery::can_support_io_configuration (const ChanCount& in, ChanCount& out) const
{

View File

@ -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 ();
}
}