-MIDI::Port *default_mmc_port = 0;
-MIDI::Port *default_mtc_port = 0;
-MIDI::Port *default_midi_port = 0;
-
-Change ARDOUR::StartChanged = ARDOUR::new_change ();
-Change ARDOUR::LengthChanged = ARDOUR::new_change ();
-Change ARDOUR::PositionChanged = ARDOUR::new_change ();
-Change ARDOUR::NameChanged = ARDOUR::new_change ();
-Change ARDOUR::BoundsChanged = Change (0); // see init(), below
-
-compute_peak_t ARDOUR::compute_peak = 0;
-find_peaks_t ARDOUR::find_peaks = 0;
-apply_gain_to_buffer_t ARDOUR::apply_gain_to_buffer = 0;
-mix_buffers_with_gain_t ARDOUR::mix_buffers_with_gain = 0;
-mix_buffers_no_gain_t ARDOUR::mix_buffers_no_gain = 0;
-
-#ifdef HAVE_LIBLO
-static int
-setup_osc ()
-{
- /* no real cost to creating this object, and it avoids
- conditionals anywhere that uses it
- */
-
- osc = new OSC (Config->get_osc_port());
-
- if (Config->get_use_osc ()) {
- return osc->start ();
- } else {
- return 0;
- }
-}
-#endif
-
-int
-setup_midi ()
-{
- if (Config->midi_ports.size() == 0) {
- warning << _("no MIDI ports specified: no MMC or MTC control possible") << endmsg;
- return 0;
- }
-
- for (std::map<string,XMLNode>::iterator i = Config->midi_ports.begin(); i != Config->midi_ports.end(); ++i) {
- MIDI::Manager::instance()->add_port (i->second);
- }
-
- MIDI::Port* first;
- const MIDI::Manager::PortMap& ports = MIDI::Manager::instance()->get_midi_ports();
-
- if (ports.size() > 1) {
-
- first = ports.begin()->second;
-
- /* More than one port, so try using specific names for each port */
-
- if (Config->get_mmc_port_name() != N_("default")) {
- default_mmc_port = MIDI::Manager::instance()->port (Config->get_mmc_port_name());
- }
-
- if (Config->get_mtc_port_name() != N_("default")) {
- default_mtc_port = MIDI::Manager::instance()->port (Config->get_mtc_port_name());
- }
-
- if (Config->get_midi_port_name() != N_("default")) {
- default_midi_port = MIDI::Manager::instance()->port (Config->get_midi_port_name());
- }
-
- /* If that didn't work, just use the first listed port */
-
- if (default_mmc_port == 0) {
- default_mmc_port = first;
- }
-
- if (default_mtc_port == 0) {
- default_mtc_port = first;
- }