mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
audio_backend: Rename instantiate() parameter arg2 to session_id
The thing called backend_client_name defaulted to lowercase PROGRAM_NAME
and could be controlled with:
-c, --name <name> Use a specific backend client name, default is ardour
This value was *only* used for set_backend arg2 which only is used for
jack, where it was called session_uuid and passed to jack_client_open as
"a SessionID Token this allows the sessionmanager to identify the client
again" because JackSessionID.
It is certainly misleading to call it a uuid. It also doesn't seem
helpful to call it "client name" when the documentation calls it
"session id". And mostly: jack_client_open calls its *first* argument
"client_name" and it comes from argv1.
To clear things up, consistently call it something with "session id".
And it is not helpful to use a generic arg2 naming.
This commit is contained in:
parent
9c0c4f527b
commit
710bd07cd4
17 changed files with 35 additions and 35 deletions
|
|
@ -48,7 +48,7 @@ using namespace PBD;
|
|||
|
||||
static const char* localedir = LOCALEDIR;
|
||||
|
||||
static string backend_client_name;
|
||||
static string backend_session_id;
|
||||
static CrossThreadChannel xthread (true);
|
||||
static TestReceiver test_receiver;
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ load_session (string dir, string state)
|
|||
|
||||
AudioEngine* engine = AudioEngine::create ();
|
||||
|
||||
if (!engine->set_backend (backend_name, backend_client_name, "")) {
|
||||
if (!engine->set_backend (backend_name, backend_session_id, "")) {
|
||||
std::cerr << "Cannot set Audio/MIDI engine backend\n";
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
|
@ -172,7 +172,7 @@ main (int argc, char* argv[])
|
|||
|
||||
bool try_hw_optimization = true;
|
||||
|
||||
backend_client_name = PBD::downcase (std::string (PROGRAM_NAME));
|
||||
backend_session_id = PBD::downcase (std::string (PROGRAM_NAME));
|
||||
|
||||
int c;
|
||||
while ((c = getopt_long (argc, argv, optstring, longopts, (int*)0)) != EOF) {
|
||||
|
|
@ -191,7 +191,7 @@ main (int argc, char* argv[])
|
|||
break;
|
||||
|
||||
case 'c':
|
||||
backend_client_name = optarg;
|
||||
backend_session_id = optarg;
|
||||
break;
|
||||
|
||||
case 'B':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue