OSC: Add custom bank creation and use
[ardour.git] / libs / backends / jack / jack_connection.h
index 8d15be6e3a47330a26bbaa6d428c91c614a77291..f0fb2c1fdbd5f701ef61301862923886f3b755bb 100644 (file)
@@ -2,7 +2,7 @@
 #define __libardour_jack_connection_h__
 
 #include <string>
-#include <jack/jack.h>
+#include "weak_libjack.h"
 
 #include "pbd/signals.h"
 
@@ -29,13 +29,18 @@ class JackConnection {
 
     static bool in_control() { return _in_control; }
 
+    uint32_t probed_buffer_size () const { assert (!connected ()); return _probed_buffer_size; }
+    uint32_t probed_sample_rate () const { assert (!connected ()); return _probed_sample_rate; }
+
   private:
     jack_client_t* volatile _jack;
     std::string _client_name;
     std::string session_uuid;
     static bool _in_control;
+    uint32_t _probed_buffer_size; // when not in control
+    uint32_t _probed_sample_rate; // when not in control
 };
 
-} // namespace 
+} // namespace
 
 #endif /* __libardour_jack_connection_h__ */