+ _output->add_port ("", this, DataType::MIDI);
+
+ lookup_synth();
+
+ _output->changed.connect_same_thread (*this, boost::bind (&Auditioner::output_changed, this, _1, _2));
+ Config->ParameterChanged.connect_same_thread (*this, boost::bind (&Auditioner::config_changed, this, _1));
+
+ return 0;
+}
+
+Auditioner::~Auditioner ()
+{
+ if (asynth) {
+ asynth->drop_references ();
+ }
+ asynth.reset ();
+}