diff --git a/webrtc/voice_engine/test/auto_test/standard/mixing_test.cc b/webrtc/voice_engine/test/auto_test/standard/mixing_test.cc index 6a90c07e68..31d71dd7fc 100644 --- a/webrtc/voice_engine/test/auto_test/standard/mixing_test.cc +++ b/webrtc/voice_engine/test/auto_test/standard/mixing_test.cc @@ -189,13 +189,13 @@ class MixingTest : public AfterInitializationFixture { }; // These tests assume a maximum of three mixed participants. We typically allow -// a +/- 10% range around the expected output level to account for distortion +// a +/- 15% range around the expected output level to account for distortion // from coding and processing in the loopback chain. TEST_F(MixingTest, FourChannelsWithOnlyThreeMixed) { const int16_t kInputValue = 1000; const int16_t kExpectedOutput = kInputValue * 3; - RunMixingTest(4, 0, 4, kInputValue, 1.1 * kExpectedOutput, - 0.9 * kExpectedOutput); + RunMixingTest(4, 0, 4, kInputValue, 1.15 * kExpectedOutput, + 0.85 * kExpectedOutput); } // Ensure the mixing saturation protection is working. We can do this because @@ -207,8 +207,8 @@ TEST_F(MixingTest, VerifySaturationProtection) { // If this isn't satisfied, we're not testing anything. ASSERT_GT(kInputValue * 3, kInt16Max); ASSERT_LT(1.1 * kExpectedOutput, kInt16Max); - RunMixingTest(3, 0, 3, kInputValue, 1.1 * kExpectedOutput, - 0.9 * kExpectedOutput); + RunMixingTest(3, 0, 3, kInputValue, 1.15 * kExpectedOutput, + 0.85 * kExpectedOutput); } TEST_F(MixingTest, SaturationProtectionHasNoEffectOnOneChannel) { @@ -224,22 +224,22 @@ TEST_F(MixingTest, SaturationProtectionHasNoEffectOnOneChannel) { TEST_F(MixingTest, VerifyAnonymousAndNormalParticipantMixing) { const int16_t kInputValue = 1000; const int16_t kExpectedOutput = kInputValue * 2; - RunMixingTest(1, 1, 1, kInputValue, 1.1 * kExpectedOutput, - 0.9 * kExpectedOutput); + RunMixingTest(1, 1, 1, kInputValue, 1.15 * kExpectedOutput, + 0.85 * kExpectedOutput); } TEST_F(MixingTest, AnonymousParticipantsAreAlwaysMixed) { const int16_t kInputValue = 1000; const int16_t kExpectedOutput = kInputValue * 4; - RunMixingTest(3, 1, 3, kInputValue, 1.1 * kExpectedOutput, - 0.9 * kExpectedOutput); + RunMixingTest(3, 1, 3, kInputValue, 1.15 * kExpectedOutput, + 0.85 * kExpectedOutput); } TEST_F(MixingTest, VerifyStereoAndMonoMixing) { const int16_t kInputValue = 1000; const int16_t kExpectedOutput = kInputValue * 2; - RunMixingTest(2, 0, 1, kInputValue, 1.1 * kExpectedOutput, - 0.9 * kExpectedOutput); + RunMixingTest(2, 0, 1, kInputValue, 1.15 * kExpectedOutput, + 0.85 * kExpectedOutput); } } // namespace webrtc