NOOP, remove trailing tabs/whitespace.
[ardour.git] / libs / backends / jack / jack_connection.cc
index 09e6c9d6e7c02d2a4ba5d7c20eac7c6a63339068..2747832ec004911d4e3aecf107cf533c3f2a84d7 100644 (file)
@@ -19,7 +19,8 @@
 #include <iostream>
 
 #include <boost/scoped_ptr.hpp>
-#include <jack/session.h>
+
+#include <glibmm/timer.h>
 
 #include "pbd/epa.h"
 
@@ -55,8 +56,10 @@ JackConnection::JackConnection (const std::string& arg1, const std::string& arg2
        : _jack (0)
        , _client_name (arg1)
        , session_uuid (arg2)
+       , _probed_buffer_size (0)
+       , _probed_sample_rate (0)
 {
-       /* See if the server is already up 
+       /* See if the server is already up
         */
 
         EnvironmentalProtectionAgency* global_epa = EnvironmentalProtectionAgency::get_global_epa ();
@@ -76,6 +79,8 @@ JackConnection::JackConnection (const std::string& arg1, const std::string& arg2
        jack_client_t* c = jack_client_open ("ardourprobe", JackNoStartServer, &status);
 
        if (status == 0) {
+               _probed_buffer_size = jack_get_buffer_size(c);
+               _probed_sample_rate = jack_get_sample_rate(c);
                jack_client_close (c);
                _in_control = false;
        } else {
@@ -140,12 +145,12 @@ JackConnection::close ()
 {
        GET_PRIVATE_JACK_POINTER_RET (_jack, -1);
 
-       if (_priv_jack) {       
+       if (_priv_jack) {
                int ret = jack_client_close (_priv_jack);
                _jack = 0;
 
                /* If we started JACK, it will be closing down */
-               usleep (500000);
+               Glib::usleep (500000);
 
                Disconnected (""); /* EMIT SIGNAL */