audio_backend: Rename instantiate() parameter arg1 to client_name

This parameter is consistently used to name the audio backend instance
and how it appear as client of the sound server. Just name it
`client_name`, consistent with the name of the jack_client_open
parameter it is passed to .
This commit is contained in:
Mads Kiilerich 2024-10-20 19:31:08 +02:00
parent 710bd07cd4
commit 79e99c12a5
10 changed files with 25 additions and 25 deletions

View file

@ -1529,7 +1529,7 @@ CoreAudioBackend::hw_changed_callback ()
static std::shared_ptr<CoreAudioBackend> _instance;
static std::shared_ptr<AudioBackend> backend_factory (AudioEngine& e);
static int instantiate (const std::string& arg1, const std::string& /* session_id */);
static int instantiate (const std::string& client_name, const std::string& /* session_id */);
static int deinstantiate ();
static bool already_configured ();
static bool available ();
@ -1553,9 +1553,9 @@ backend_factory (AudioEngine& e)
}
static int
instantiate (const std::string& arg1, const std::string& /* session_id */)
instantiate (const std::string& client_name, const std::string& /* session_id */)
{
s_instance_name = arg1;
s_instance_name = client_name;
return 0;
}