diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-01-30 07:40:13 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-01-30 07:40:13 +0000 |
commit | 70b939da4f9d4097160e32f2373a7a5ff8f4957f (patch) | |
tree | 5917e5847c75e441c9df550d5101352d18e8286f /gtk2_ardour/processor_box.cc | |
parent | ee62ee07d39f51ba1b70f390dc2158c57f54a572 (diff) |
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
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 0c97c59ae4..567dc2985f 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -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 |