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
Improve echo cancellation settings ui #4113
Improve echo cancellation settings ui #4113
Conversation
This new extension adds a name property to each ConfigWidget that in contrast to the title is not subject to localization.
…tent with what is currently set Before the system didn't detect if the user had changed the audio output interface and thus the enablement status of the echo cancellation ComboBox did not reflect the current combination of set audio interfaces.
0b41dd8
to
28945ca
Compare
Why not return the string directly instead of storing it in a variable? |
@davidebeatrici What code part are you talking about? |
For example: const QString ASIOConfig::name = QLatin1String("ASIOConfig");
const QString &ASIOConfig::getName() const {
return ASIOConfig::name;
} I would replace it with: const QString &ASIOConfig::getName() const {
return QLatin1String("ASIOConfig");
} |
EDIT: Scratch that, it doesn't work. When I try to do that, I get
and if I try to make make the variable static inside the function body I get the same error. Thus everything failed as I thought it would |
This might be helpful for people that don't know that the combination of input and output interface plays an important role for this feature.
28945ca
to
6789b05
Compare
Sorry, should've been: const QString ASIOConfig::getName() const {
return QLatin1String("ASIOConfig");
} |
Yeah that I didn't do because I don't see the need to copy the names all the time as they are in fact static. Thus I want to allocate them once and then use that instance |
How many times is |
Probably not often enough for this to make a difference but I still wanted to do it "the best way". And I don't think it clutters the code in the way I did it |
The memory usage is minimal anyway. |
This PR makes sure that the enablement of the echo cancellation ComboBox in the setting is done correctly (and on-the-fly: No need to press
Apply
for this to work) and if it is disabled, a tooltip will explain why.Fixes #4110
Changelog