Changed default value for the duration of the echo in echocanceller 3
BUG=webrtc:7519 Review-Url: https://codereview.webrtc.org/2971683002 Cr-Commit-Position: refs/heads/master@{#18887}
This commit is contained in:
@ -334,7 +334,7 @@ std::string EchoCanceller3::ToString(
|
||||
|
||||
bool EchoCanceller3::Validate(
|
||||
const AudioProcessing::Config::EchoCanceller3& config) {
|
||||
return (config.echo_decay >= 0.f && config.echo_decay < 1.f);
|
||||
return true;
|
||||
}
|
||||
|
||||
void EchoCanceller3::EmptyRenderQueue() {
|
||||
|
||||
@ -684,17 +684,7 @@ TEST(EchoCanceller3Messaging, EchoLeakage) {
|
||||
|
||||
TEST(EchoCanceller3, ConfigValidation) {
|
||||
AudioProcessing::Config::EchoCanceller3 config;
|
||||
|
||||
config.echo_decay = 0.f;
|
||||
EXPECT_TRUE(EchoCanceller3::Validate(config));
|
||||
config.echo_decay = 0.9f;
|
||||
EXPECT_TRUE(EchoCanceller3::Validate(config));
|
||||
config.echo_decay = -0.1f;
|
||||
EXPECT_FALSE(EchoCanceller3::Validate(config));
|
||||
config.echo_decay = 1.0f;
|
||||
EXPECT_FALSE(EchoCanceller3::Validate(config));
|
||||
config.echo_decay = 1.1f;
|
||||
EXPECT_FALSE(EchoCanceller3::Validate(config));
|
||||
}
|
||||
|
||||
#if RTC_DCHECK_IS_ON && GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID)
|
||||
|
||||
@ -104,7 +104,7 @@ EchoRemoverImpl::EchoRemoverImpl(
|
||||
suppression_gain_(optimization_),
|
||||
cng_(optimization_),
|
||||
suppression_filter_(sample_rate_hz_),
|
||||
aec_state_(config.echo_decay) {
|
||||
aec_state_(0.8f) {
|
||||
RTC_DCHECK(ValidFullBandRate(sample_rate_hz));
|
||||
}
|
||||
|
||||
|
||||
@ -268,7 +268,6 @@ class AudioProcessing : public rtc::RefCountInterface {
|
||||
// does not yet have the desired behavior.
|
||||
struct EchoCanceller3 {
|
||||
bool enabled = false;
|
||||
float echo_decay = 0.f;
|
||||
} echo_canceller3;
|
||||
|
||||
// Enables the next generation AGC functionality. This feature replaces the
|
||||
|
||||
Reference in New Issue
Block a user