-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to mute all devices #61
base: master
Are you sure you want to change the base?
Conversation
audio_switch.c
Outdated
@@ -37,6 +37,7 @@ void showUsage(const char * appName) { | |||
" -f format : output format (cli/human/json). Defaults to human.\n" | |||
" -t type : device type (input/output/system/all). Defaults to output.\n" | |||
" -m mute : sets the mute status (mute/unmute/toggle). For input/output only.\n" | |||
" -A all : Can be used with -m mute option above to set mute status for all devices, can't be used if toggle mute status is specified\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no parameter <all>
to this, right? Would mute-all
and unmute-all
to -m
be better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zuckschwerdt updated to use mute-all and unmute-all with -M and -U flags respectively
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new -M
and -U
again don't need a parameter. It should e.g. be
" -M : sets the mute status to mute for all devices of specified device type\n"
and not
" -M mute-all : sets the mute status to mute for all devices of specified device type\n"
But my suggestion -- just a suggestion really -- was to use:
" -m mute : sets the mute status (mute/mute-all/unmute/unmute-all/toggle). For input/output only.\n"
So we don't add new options.
But that is just my preference, your modified original is also a valid option (but could be confusing as you state in the text on when it applies)
" -A : Can be used with -m mute option above to set mute status for all devices, can't be used if toggle mute status is specified\n"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see now what you meant, updated it
@deweller Can you take a look ? This is good to go and working fine for me, |
No description provided.