OSC: Add custom bank creation and use
[ardour.git] / libs / backends / jack / jack_connection.h
index cd45f3b9badb37b32101a373747a5e5160190d52..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"
 
@@ -27,14 +27,20 @@ class JackConnection {
     void halted_callback ();
     void halted_info_callback (jack_status_t, const char*);
 
-    static bool server_running();
+    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__ */