first pass at internal sends. this is a very tentative work in progress, and it is possible that major changes may follow in the near future. it is certainly not complete, but the fundamental changes to Port/Buffer operation merit a commit at this point

git-svn-id: svn://localhost/ardour2/branches/3.0@4464 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-01-30 07:40:13 +00:00
parent ee62ee07d3
commit 70b939da4f
48 changed files with 679 additions and 404 deletions

View file

@ -342,7 +342,11 @@ ProcessorBox::processor_button_release_event (GdkEventButton *ev)
/* button2-click with no modifiers */
processor->set_active (!processor->active());
if (processor->active()) {
processor->deactivate ();
} else {
processor->activate ();
}
ret = true;
}
@ -396,7 +400,7 @@ ProcessorBox::use_plugins (const SelectedPlugins& plugins)
Route::ProcessorStreams err_streams;
if (Config->get_new_plugins_active()) {
processor->set_active (true);
processor->activate ();
}
if (_route->add_processor (processor, &err_streams)) {
@ -405,7 +409,7 @@ ProcessorBox::use_plugins (const SelectedPlugins& plugins)
} else {
if (Profile->get_sae()) {
processor->set_active (true);
processor->activate ();
}
processor->ActiveChanged.connect (bind (mem_fun (*this, &ProcessorBox::show_processor_active), boost::weak_ptr<Processor>(processor)));
}
@ -545,7 +549,7 @@ ProcessorBox::send_io_finished (IOSelector::Result r, boost::weak_ptr<Processor>
case IOSelector::Accepted:
_route->add_processor (processor);
if (Profile->get_sae()) {
processor->set_active (true);
processor->activate ();
}
break;
}
@ -982,13 +986,13 @@ could not match the configuration of this track.");
void
ProcessorBox::activate_processor (boost::shared_ptr<Processor> r)
{
r->set_active (true);
r->activate ();
}
void
ProcessorBox::deactivate_processor (boost::shared_ptr<Processor> r)
{
r->set_active (false);
r->deactivate ();
}
void