Skip to content

Commit

Permalink
fixed custom jack client names
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Weidauer committed Oct 28, 2024
1 parent 85d5786 commit 5f51192
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/JackClient/JackClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void JackClient::parse_args(int argc, char* argv[]) {
int option_index = 0;
static struct option long_options[] = {
{"configfile", required_argument, nullptr, 'c'},
{"jackclientname", required_argument, nullptr, 'n'},
{"jackclientname", required_argument, nullptr, 'j'},
{"verbose", no_argument, nullptr, 'v'},
{"help", no_argument, nullptr, 'h'},
{nullptr, 0, nullptr, 0}};
Expand All @@ -133,7 +133,7 @@ void JackClient::parse_args(int argc, char* argv[]) {
m_config_path = optarg;
break;

case 'n':
case 'j':
m_client_name = optarg;
break;

Expand Down Expand Up @@ -201,6 +201,8 @@ void JackClient::prepare(HostAudioConfig config) {
if (jack_activate(m_client)) {
fprintf ( stderr, "[error] cannot activate client" );
exit ( 1 );
} else {
std::cout << "[info] jack client is ready" << std::endl;
}
}

Expand Down

0 comments on commit 5f51192

Please sign in to comment.