#include "pbd/memento_command.h"
#include "pbd/stacktrace.h"
#include "pbd/convert.h"
+#include "pbd/boost_debug.h"
#include "evoral/Curve.hpp"
/* panning */
- _pannable.reset (new Pannable (_session));
+ Pannable* p = new Pannable (_session);
+#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
+ boost_debug_shared_ptr_mark_interesting (p, "Pannable");
+#endif
+ _pannable.reset (p);
/* input and output objects */
int
Route::add_processors (const ProcessorList& others, boost::shared_ptr<Processor> before, ProcessorStreams* err)
{
+ /* NOTE: this is intended to be used ONLY when copying
+ processors from another Route. Hence the subtle
+ differences between this and ::add_processor()
+ */
+
ProcessorList::iterator loc;
if (before) {
loc = find (_processors.begin(), _processors.end(), _main_outs);
}
- return add_processors (others, loc, err);
-}
-
-int
-Route::add_processors (const ProcessorList& others, ProcessorList::iterator iter, ProcessorStreams* err)
-{
- /* NOTE: this is intended to be used ONLY when copying
- processors from another Route. Hence the subtle
- differences between this and ::add_processor()
- */
-
ChanCount old_pms = processor_max_streams;
if (!_session.engine().connected()) {
}
}
- ProcessorList::iterator inserted = _processors.insert (iter, *i);
+ ProcessorList::iterator inserted = _processors.insert (loc, *i);
if ((*i)->active()) {
(*i)->activate ();
_meter->reset_max_channels (processor_max_streams);
}
- /* if we haven't bound the main outs panner & our pannable together yet, do it now ..
- */
-
- if (_main_outs && !_pannable->panner()) {
- _pannable->set_panner (_main_outs->panner_shell()->panner());
- }
-
/* make sure we have sufficient scratch buffers to cope with the new processor
configuration */
_session.ensure_buffers (n_process_buffers ());
}
}
- if (true) {
- processors_changed (RouteProcessorChange ()); /* EMIT SIGNAL */
- set_processor_positions ();
- }
+ processors_changed (RouteProcessorChange ()); /* EMIT SIGNAL */
+ set_processor_positions ();
return 0;
}