provide more accurate diagnostics from AudioEngine::port_registration_failure() and...
[ardour.git] / libs / ardour / audioengine.cc
index b0a17fd1930f758a2c5a70d8e39e67b4df062483..cc74b92a6942c464aec4596d237bf61f28e58c96 100644 (file)
@@ -32,9 +32,6 @@
 #include <ardour/session.h>
 #include <ardour/cycle_timer.h>
 #include <ardour/utils.h>
-#ifdef VST_SUPPORT
-#include <fst.h>
-#endif
 
 #include <ardour/timestamps.h>
 
@@ -100,7 +97,7 @@ _thread_init_callback (void *arg)
           knows about it.
        */
 
-       PBD::ThreadCreatedWithRequestSize (pthread_self(), X_("Audioengine"), 4096);
+       PBD::notify_gui_about_thread_creation (pthread_self(), X_("Audioengine"), 4096);
 }
 
 int
@@ -453,7 +450,7 @@ AudioEngine::set_session (Session *s)
                /* page in as much of the session process code as we
                   can before we really start running.
                */
-               
+
                session->process (blocksize);
                session->process (blocksize);
                session->process (blocksize);
@@ -496,9 +493,9 @@ AudioEngine::port_registration_failure (const std::string& portname)
        string reason;
        
        if (p) {
-               reason = _("a port with this name already exists: check for duplicated track/bus names");
+               reason = string_compose (_("a port with the name \"%1\" already exists: check for duplicated track/bus names"), portname);
        } else {
-               reason = _("unknown error");
+               reason = _("No more JACK ports are available. You will need to stop Ardour and restart JACK with ports if you need this many tracks.");
        }
        
        throw PortRegistrationFailure (string_compose (_("AudioEngine: cannot register port \"%1\": %2"), portname, reason).c_str());
@@ -808,8 +805,6 @@ AudioEngine::halted (void *arg)
        ae->_buffer_size = 0;
        ae->_frame_rate = 0;
 
-       cerr << "!!! HALTED !!!\n";
-
        if (was_running) {
                ae->Halted(); /* EMIT SIGNAL */
        }
@@ -970,7 +965,6 @@ AudioEngine::transport_stop ()
 void
 AudioEngine::transport_start ()
 {
-       // cerr << "tell JACK to start\n";
        if (_jack) {
                jack_transport_start (_jack);
        }
@@ -1213,7 +1207,7 @@ AudioEngine::reconnect_to_jack ()
        
        if (Config->get_jack_time_master()) {
                jack_set_timebase_callback (_jack, 0, _jack_timebase_callback, this);
-       }
+       } 
        
        if (jack_activate (_jack) == 0) {
                _running = true;