more removal of Placement
git-svn-id: svn://localhost/ardour2/branches/3.0@5345 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
88beef2e93
commit
385635c445
@ -167,15 +167,6 @@ class Route : public SessionObject, public AutomatableControls
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void foreach_processor (Placement p, sigc::slot<void, boost::weak_ptr<Processor> > method) {
|
|
||||||
Glib::RWLock::ReaderLock lm (_processor_lock);
|
|
||||||
ProcessorList::iterator start, end;
|
|
||||||
placement_range(p, start, end);
|
|
||||||
for (ProcessorList::iterator i = start; i != end; ++i) {
|
|
||||||
method (boost::weak_ptr<Processor> (*i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
boost::shared_ptr<Processor> nth_processor (uint32_t n) {
|
boost::shared_ptr<Processor> nth_processor (uint32_t n) {
|
||||||
Glib::RWLock::ReaderLock lm (_processor_lock);
|
Glib::RWLock::ReaderLock lm (_processor_lock);
|
||||||
ProcessorList::iterator i;
|
ProcessorList::iterator i;
|
||||||
@ -412,7 +403,6 @@ class Route : public SessionObject, public AutomatableControls
|
|||||||
int configure_processors (ProcessorStreams*);
|
int configure_processors (ProcessorStreams*);
|
||||||
int configure_processors_unlocked (ProcessorStreams*);
|
int configure_processors_unlocked (ProcessorStreams*);
|
||||||
|
|
||||||
bool add_processor_from_xml (const XMLNode&, Placement);
|
|
||||||
bool add_processor_from_xml (const XMLNode&, ProcessorList::iterator iter);
|
bool add_processor_from_xml (const XMLNode&, ProcessorList::iterator iter);
|
||||||
|
|
||||||
void placement_range (Placement p, ProcessorList::iterator& start, ProcessorList::iterator& end);
|
void placement_range (Placement p, ProcessorList::iterator& start, ProcessorList::iterator& end);
|
||||||
|
@ -720,22 +720,6 @@ Route::add_processor (boost::shared_ptr<Processor> processor, ProcessorList::ite
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
Route::add_processor_from_xml (const XMLNode& node, Placement placement)
|
|
||||||
{
|
|
||||||
ProcessorList::iterator loc;
|
|
||||||
|
|
||||||
if (placement == PreFader) {
|
|
||||||
/* generic pre-fader: insert immediately before the amp */
|
|
||||||
loc = find(_processors.begin(), _processors.end(), _amp);
|
|
||||||
} else {
|
|
||||||
/* generic post-fader: insert at end */
|
|
||||||
loc = _processors.end();
|
|
||||||
}
|
|
||||||
|
|
||||||
return add_processor_from_xml (node, loc);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Route::add_processor_from_xml (const XMLNode& node, ProcessorList::iterator iter)
|
Route::add_processor_from_xml (const XMLNode& node, ProcessorList::iterator iter)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user