Drop the restriction on same forward and reverse sample rate on the AudioFrame interface of the APM

R=peah@webrtc.org

Review URL: https://codereview.webrtc.org/1766233003 .

Cr-Commit-Position: refs/heads/master@{#11913}
This commit is contained in:
Alex Luebs
2016-03-08 17:52:52 +01:00
parent b8f7885861
commit 5b830fed07
2 changed files with 3 additions and 10 deletions

View File

@ -65,12 +65,10 @@ TEST(AudioProcessingImplTest, AudioParameterChangeTriggersInit) {
frame.num_channels_ = 2;
EXPECT_NOERR(mock.AnalyzeReverseStream(&frame));
// A new sample rate passed to AnalyzeReverseStream should be an error and
// not cause an init.
// A new sample rate passed to AnalyzeReverseStream should cause an init.
SetFrameSampleRate(&frame, 16000);
EXPECT_CALL(mock, InitializeLocked())
.Times(0);
EXPECT_EQ(mock.kBadSampleRateError, mock.AnalyzeReverseStream(&frame));
EXPECT_CALL(mock, InitializeLocked()).Times(1);
EXPECT_NOERR(mock.AnalyzeReverseStream(&frame));
}
} // namespace webrtc