audio_processing: Forces extended filter to be used in splitting filter test.
The behavior differ between "normal" and "extended" modes when using AEC. In the extended filter mode nothing is processed until we have received a farend frame. This is exactly what is needed in this part of the splitting filter test. On Android, we do not use the normal mode, which made the test to fail. BUG=3445 R=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/12679004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6368 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
9c55f0f957
commit
cb0ea43e57
@ -1369,7 +1369,7 @@ TEST_F(ApmTest, IdenticalInputChannelsResultInIdenticalOutputChannels) {
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(ApmTest, DISABLED_ON_ANDROID(SplittingFilter)) {
|
||||
TEST_F(ApmTest, SplittingFilter) {
|
||||
// Verify the filter is not active through undistorted audio when:
|
||||
// 1. No components are enabled...
|
||||
SetFrameTo(frame_, 1000);
|
||||
@ -1417,6 +1417,11 @@ TEST_F(ApmTest, DISABLED_ON_ANDROID(SplittingFilter)) {
|
||||
// TODO(andrew): This test, and the one below, rely rather tenuously on the
|
||||
// behavior of the AEC. Think of something more robust.
|
||||
EXPECT_EQ(apm_->kNoError, apm_->echo_cancellation()->Enable(true));
|
||||
// Make sure we have extended filter enabled. This makes sure nothing is
|
||||
// touched until we have a farend frame.
|
||||
Config config;
|
||||
config.Set<DelayCorrection>(new DelayCorrection(true));
|
||||
apm_->SetExtraOptions(config);
|
||||
SetFrameTo(frame_, 1000);
|
||||
frame_copy.CopyFrom(*frame_);
|
||||
EXPECT_EQ(apm_->kNoError, apm_->set_stream_delay_ms(0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user