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
Enable echo cancellation by default #4214
Enable echo cancellation by default #4214
Conversation
Since echo cancellation only works for some platform (where you can hijack the system audio output as your echo source), did this change take this fact into account? I'm running mumble at Mac, and I'm afraid that this option will be marked as on in the settings window but is off in the background, and since this option will be disabled by mumble/src/mumble/AudioConfigDialog.cpp Lines 410 to 420 in 803ef7f
Update: This worry confirmed by seeing that mumble/src/mumble/AudioConfigDialog.cpp Lines 167 to 172 in 803ef7f
Where this checkbox is initialized with no check by calling canEcho function. Proposed solution:
after L417. |
I see a |
I think now that bEcho is true by default, we need to set bEchoMulti to false. |
@TerryGeng yes you are right. I forgot about the Mac situation. @fedetft you are also correct. I'll have to set that to |
76fec60
to
73cb14c
Compare
Both should be fixed now |
Now that the echo canceller has been fixed, it is time to default-enable echo cancelling. As multi-channel cancelling is more CPU intensive, we default to mixed channel cancellation. Don't enable it on MacOS though as right now we do not support echo cancellation for that platform.
73cb14c
to
5914172
Compare
Thanks for the quick reply! Hmmmmm.... It looks like it is not only the problem of mac. SInce whether echo cancellation is supported depends on the Audio backend used, not just the OS. I suggest that adopting my proposed way: Add mumble/src/mumble/AudioConfigDialog.cpp Lines 410 to 420 in 803ef7f
This will essentially check with the current audio setup to determine whether echo cancellation can be enabled, and then set the checkbox. So we don't have to worry that we freeze our combo box when it is set to "on". |
@TerryGeng sounds good to me. I think though that this should be a separate PR. Since you brought it up: Do you want to create said PR to also receive the glory for the change/fix? :D |
Now that the echo canceller has been fixed, it is time to default-enable
echo cancelling. As multi-channel cancelling is more CPU intensive, we
default to mixed channel cancellation.
Don't enable it on MacOS though as right now we don't support echo
cancellation for that platform.
Closes: #4178
Changelog: