Skip to content
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

media-keys: Add microphone mute key support #253

Merged
merged 1 commit into from
Dec 5, 2018
Merged

media-keys: Add microphone mute key support #253

merged 1 commit into from
Dec 5, 2018

Conversation

zhangxianwei8
Copy link
Contributor

Pressing the microphone mute button now toggles the mute status.

Fix #175

Pressing the microphone mute button now toggles the mute status.

Fix #175

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
@raveit65 raveit65 self-requested a review December 4, 2018 15:32
Copy link
Member

@raveit65 raveit65 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builds and runs fine.
Tested with changing the keybinding with mate-keybinding-editor, because my keyboards doesn't have a key for this.

@raveit65 raveit65 requested a review from a team December 4, 2018 15:37
Copy link
Member

@lukefromdc lukefromdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is REALLY nice, even includes an OSD for mic muted or not. Memory management looks good, as the only new pointer variables I noticed point to the existing streams we don't want to free and are handled the same way as all the others. Looks good to go here. Tested with the mate-control-center commit used used Ctrl+Audio Mute as the key combo for it

@lukefromdc lukefromdc merged commit 2830e71 into mate-desktop:master Dec 5, 2018
lukefromdc pushed a commit to mate-desktop/mate-control-center that referenced this pull request Dec 5, 2018
Provided additional "mic-mute" key binding.

For reference: mate-desktop/mate-settings-daemon#253

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
@lukefromdc
Copy link
Member

Tested actual audio recording from both an actual microphone and from "monitor of stereo output" in Audacity, muting worked fine, turning the sound being recorded on and off in both cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants