Revert "Add one-stop-shop for built-in AEC toggling in APM"
This reverts commit 771b50ca0b92477ce8aabba025e959790dd1a949. Reason for revert: Introduces error-prone config. Original change's description: > Add one-stop-shop for built-in AEC toggling in APM > > This does not change what AEC functionality is available. > However, a client that only uses this interface - and not the submodule > pointer accessors - gets simpler code, and is guaranteed not to run any > two AECs in tandem. > > The submodule interface EchoControlMobile is being deprecated in > https://webrtc-review.googlesource.com/c/src/+/89392 > > Bug: webrtc:9535 > Change-Id: Id9326074e566be6d8768010fc421c457beff402c > Reviewed-on: https://webrtc-review.googlesource.com/89386 > Commit-Queue: Sam Zackrisson <saza@webrtc.org> > Reviewed-by: Per Åhgren <peah@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#24066} TBR=saza@webrtc.org,peah@webrtc.org Change-Id: I43283a1b22538a4caa77313499989146b2ce67f1 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: webrtc:9535 Reviewed-on: https://webrtc-review.googlesource.com/90060 Reviewed-by: Sam Zackrisson <saza@webrtc.org> Commit-Queue: Sam Zackrisson <saza@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24067}
This commit is contained in:
committed by
Commit Bot
parent
771b50ca0b
commit
2a959d96c9
@ -368,9 +368,8 @@ TEST_F(DebugDumpTest, ToggleDelayAgnosticAec) {
|
||||
generator.StartRecording();
|
||||
generator.Process(100);
|
||||
|
||||
AudioProcessing::Config new_config;
|
||||
new_config.echo_cancellation.enabled = true;
|
||||
generator.apm()->ApplyConfig(new_config);
|
||||
EchoCancellation* aec = generator.apm()->echo_cancellation();
|
||||
EXPECT_EQ(AudioProcessing::kNoError, aec->Enable(!aec->is_enabled()));
|
||||
|
||||
generator.Process(100);
|
||||
generator.StopRecording();
|
||||
@ -408,7 +407,6 @@ TEST_F(DebugDumpTest, VerifyCombinedExperimentalStringInclusive) {
|
||||
// Arbitrarily set clipping gain to 17, which will never be the default.
|
||||
config.Set<ExperimentalAgc>(new ExperimentalAgc(true, 0, 17));
|
||||
bool enable_aec3 = true;
|
||||
apm_config.echo_cancellation.enabled = true;
|
||||
DebugDumpGenerator generator(config, apm_config, enable_aec3);
|
||||
generator.StartRecording();
|
||||
generator.Process(100);
|
||||
@ -465,8 +463,7 @@ TEST_F(DebugDumpTest, VerifyCombinedExperimentalStringExclusive) {
|
||||
TEST_F(DebugDumpTest, VerifyAec3ExperimentalString) {
|
||||
Config config;
|
||||
AudioProcessing::Config apm_config;
|
||||
apm_config.echo_cancellation.enabled = true;
|
||||
DebugDumpGenerator generator(config, apm_config, true /* enable_aec3 */);
|
||||
DebugDumpGenerator generator(config, apm_config, true);
|
||||
generator.StartRecording();
|
||||
generator.Process(100);
|
||||
generator.StopRecording();
|
||||
|
||||
Reference in New Issue
Block a user