OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include <stdio.h> | 11 #include <stdio.h> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "webrtc/system_wrappers/interface/sleep.h" | 14 #include "webrtc/system_wrappers/include/sleep.h" |
15 #include "webrtc/test/testsupport/fileutils.h" | 15 #include "webrtc/test/testsupport/fileutils.h" |
16 #include "webrtc/voice_engine/test/auto_test/fixtures/after_initialization_fixtu
re.h" | 16 #include "webrtc/voice_engine/test/auto_test/fixtures/after_initialization_fixtu
re.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 namespace { | 19 namespace { |
20 | 20 |
21 const int16_t kLimiterHeadroom = 29204; // == -1 dbFS | 21 const int16_t kLimiterHeadroom = 29204; // == -1 dbFS |
22 const int16_t kInt16Max = 0x7fff; | 22 const int16_t kInt16Max = 0x7fff; |
23 const int kPayloadType = 105; | 23 const int kPayloadType = 105; |
24 const int kInSampleRateHz = 16000; // Input file taken as 16 kHz by default. | 24 const int kInSampleRateHz = 16000; // Input file taken as 16 kHz by default. |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 279 |
280 TEST_F(MixingTest, VerifyStereoAndMonoMixing) { | 280 TEST_F(MixingTest, VerifyStereoAndMonoMixing) { |
281 const int16_t kInputValue = 1000; | 281 const int16_t kInputValue = 1000; |
282 const int16_t kExpectedOutput = kInputValue * 2; | 282 const int16_t kExpectedOutput = kInputValue * 2; |
283 RunMixingTest(2, 0, 1, false, kInputValue, 1.1 * kExpectedOutput, | 283 RunMixingTest(2, 0, 1, false, kInputValue, 1.1 * kExpectedOutput, |
284 // Lower than 0.9 due to observed flakiness on bots. | 284 // Lower than 0.9 due to observed flakiness on bots. |
285 0.8 * kExpectedOutput, kCodecL16); | 285 0.8 * kExpectedOutput, kCodecL16); |
286 } | 286 } |
287 | 287 |
288 } // namespace webrtc | 288 } // namespace webrtc |
OLD | NEW |