-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
make mic ducking use strength the same way in Auto & Man mode #2750
Conversation
My manual tests went well but the engine tests are failing. |
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 change looks good to me.
I will have a look into the tests.
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.
Ok, after the suggested changes the tests will probably work again.
// If we overshot, clamp. | ||
m_compressRatio = 0; | ||
m_compressRatio = 1; | ||
} | ||
} else if (m_compressRatio < 0) { | ||
// Complain loudly. | ||
qWarning() << "Programming error, below-zero compression detected."; |
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.
VERIFY_OR_DEBUG_ASSERT and before the condition above.
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.
Hopefully I got your suggestion right here
} else {
VERIFY_OR_DEBUG_ASSERT(m_compressRatio >= 0) {
qWarning() << "Programming error, below-zero compression detected.";
}
if (m_compressRatio < 1) {
m_compressRatio += m_decayPerFrame * frames;
if (m_compressRatio > 1) {
// If we overshot, clamp.
m_compressRatio = 1;
}
}
}
(sorry, I force-pushed)
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.
local engine tests are all passing now.
Previously, engine/enginetalkoverducking returned opposite values for 'strength' in Auto and Manual mode. This commit removes the inversion from Auto mode, thus the Strength knob always affects the music volume in the same way with both modes, much like a Muisc Volume knob: * fully left: music muted completely * fully right: music volume unchanged
689395d
to
6232a33
Compare
LGTM, Thank you. |
Previously, engine/enginetalkoverducking returned opposite gain values for 'strength' in Auto and Manual mode.
This commit removes the inversion from Auto mode, thus the Strength knob is like a Music volume knob with both modes now, nicely illustrated with reversed knob arc: