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 |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 Channel* myChannel; | 671 Channel* myChannel; |
672 int32_t* myMinDelay; | 672 int32_t* myMinDelay; |
673 EventTimerWrapper* myEvent = EventTimerWrapper::Create(); | 673 EventTimerWrapper* myEvent = EventTimerWrapper::Create(); |
674 | 674 |
675 uint32_t inTimestamp = 0; | 675 uint32_t inTimestamp = 0; |
676 double estimDelay = 0; | 676 double estimDelay = 0; |
677 | 677 |
678 double averageEstimDelay = 0; | 678 double averageEstimDelay = 0; |
679 double averageDelay = 0; | 679 double averageDelay = 0; |
680 | 680 |
681 CircularBuffer estimDelayCB(100); | 681 test::CircularBuffer estimDelayCB(100); |
682 estimDelayCB.SetArithMean(true); | 682 estimDelayCB.SetArithMean(true); |
683 | 683 |
684 if (side == 'A') { | 684 if (side == 'A') { |
685 myACM = _acmA.get(); | 685 myACM = _acmA.get(); |
686 myChannel = _channel_B2A; | 686 myChannel = _channel_B2A; |
687 myMinDelay = &_minDelayA; | 687 myMinDelay = &_minDelayA; |
688 } else { | 688 } else { |
689 myACM = _acmB.get(); | 689 myACM = _acmB.get(); |
690 myChannel = _channel_A2B; | 690 myChannel = _channel_A2B; |
691 myMinDelay = &_minDelayB; | 691 myMinDelay = &_minDelayB; |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 CHECK_ERROR_MT(myACM->RegisterSendCodec(myCodec)); | 1106 CHECK_ERROR_MT(myACM->RegisterSendCodec(myCodec)); |
1107 myChannel->ResetStats(); | 1107 myChannel->ResetStats(); |
1108 { | 1108 { |
1109 WriteLockScoped wl(_apiTestRWLock); | 1109 WriteLockScoped wl(_apiTestRWLock); |
1110 *thereIsEncoder = true; | 1110 *thereIsEncoder = true; |
1111 } | 1111 } |
1112 Wait(500); | 1112 Wait(500); |
1113 } | 1113 } |
1114 | 1114 |
1115 } // namespace webrtc | 1115 } // namespace webrtc |
OLD | NEW |