mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
probe buffersize if jackd is already running.
This commit is contained in:
parent
b86a8edcff
commit
573ec69a9a
3 changed files with 11 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue