in compute_gains in case _speakers.n_tuples is 0. Prevent NaN gains if total power...
[ardour.git] / libs / ardour / midi_ui.cc
index 5d9407d5796dd7b9d312cfd925d8697263f88419..fecbf9b8e32ab2cb121e78d6d71f36d761df2d0c 100644 (file)
@@ -107,7 +107,7 @@ MidiControlUI::midi_input_handler (IOCondition ioc, MIDI::Port* port)
                CrossThreadChannel::drain (port->selectable());
 
                DEBUG_TRACE (DEBUG::MidiIO, string_compose ("data available on %1\n", port->name()));
-               nframes64_t now = _session.engine().frame_time();
+               framepos_t now = _session.engine().frame_time();
                port->parse (now);
        }
 
@@ -158,8 +158,6 @@ MidiControlUI::thread_init ()
        strcpy (c, X_("midiUI"));
        pthread_set_name (c);
 
-       cerr << "MIDI UI running\n";
-
        PBD::notify_gui_about_thread_creation (X_("gui"), pthread_self(), X_("MIDI"), 2048);
        SessionEvent::create_per_thread_pool (X_("MIDI I/O"), 128);