summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-04-07 15:41:36 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-04-07 15:41:36 +0000
commitd3b2f9e498ec9548f5d33a3b0016d31d18377813 (patch)
treee2bb27d2d342a071b9c7927722c82b6feb56eff4 /gtk2_ardour
parent04b3f11979da485fd9d682ede0c6c601b3b8f24e (diff)
make AUPlugin emit ParameterChanged() whenever it is notified of a parameter change event by the AU
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@9323 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/au_pluginui.h5
-rw-r--r--gtk2_ardour/au_pluginui.mm27
2 files changed, 0 insertions, 32 deletions
diff --git a/gtk2_ardour/au_pluginui.h b/gtk2_ardour/au_pluginui.h
index 94883cbadf..cb4b88ee39 100644
--- a/gtk2_ardour/au_pluginui.h
+++ b/gtk2_ardour/au_pluginui.h
@@ -67,11 +67,6 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox
OSStatus carbon_event (EventHandlerCallRef nextHandlerRef, EventRef event);
-#ifdef PARAMETER_LISTENING
- static void _parameter_change_listener (void* /*arg*/, void* /*src*/, const AudioUnitEvent* event, UInt64 host_time, Float32 new_value);
- void parameter_change_listener (void* /*arg*/, void* /*src*/, const AudioUnitEvent* event, UInt64 host_time, Float32 new_value);
-#endif
-
private:
boost::shared_ptr<ARDOUR::AUPlugin> au;
int prefheight;
diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm
index bdc1dd33b4..a704dcd148 100644
--- a/gtk2_ardour/au_pluginui.mm
+++ b/gtk2_ardour/au_pluginui.mm
@@ -121,18 +121,6 @@ AUPluginUI::AUPluginUI (boost::shared_ptr<PluginInsert> insert)
throw failed_constructor ();
}
-#ifdef PARAMETER_LISTENING
- if (au->create_parameter_listener (AUPluginUI::_parameter_change_listener, this, 0.05) == 0) {
- cerr << "Registered parameter listener for " << insert->name() << endl;
- set<uint32_t> params = au->automatable ();
- for (set<uint32_t>::iterator p = params.begin(); p != params.end(); ++p) {
- cerr << "Listen to " << *p << " result = " << au->listen_to_parameter (*p) << endl;
- }
- } else {
- cerr << "Could not registered parameter listener for " << insert->name() << endl;
- }
-#endif
-
/* stuff some stuff into the top of the window */
HBox* smaller_hbox = manage (new HBox);
@@ -699,18 +687,3 @@ AUPluginUI::on_focus_out_event (GdkEventFocus* ev)
return false;
}
-#ifdef PARAMETER_LISTENING
-
-void
-AUPluginUI::_parameter_change_listener (void* arg, void* src, const AudioUnitEvent* event, UInt64 host_time, Float32 new_value)
-{
- ((AUPluginUI*) arg)->parameter_change_listener (arg, src, event, host_time, new_value);
-}
-
-void
-AUPluginUI::parameter_change_listener (void* /*arg*/, void* /*src*/, const AudioUnitEvent* event, UInt64 host_time, Float32 new_value)
-{
- cerr << insert->name() << "Parameter " << event->mArgument.mParameter.mParameterID << " changed to " << new_value << endl;
-}
-
-#endif