From 573ec69a9aa29b08d99cba56284660fcd080fb55 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 14 Jun 2015 18:10:31 +0200 Subject: probe buffersize if jackd is already running. --- libs/backends/jack/jack_connection.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/backends/jack/jack_connection.cc') diff --git a/libs/backends/jack/jack_connection.cc b/libs/backends/jack/jack_connection.cc index f9824143ce..af938ad21b 100644 --- a/libs/backends/jack/jack_connection.cc +++ b/libs/backends/jack/jack_connection.cc @@ -56,6 +56,8 @@ 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 */ @@ -77,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 { -- cgit v1.2.3