OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // TODO: wraparound could be handled more gracefully. | 78 // TODO: wraparound could be handled more gracefully. |
79 return 0; | 79 return 0; |
80 } | 80 } |
81 const uint32_t elapsed_time = current_time - last_process_time_ms_; | 81 const uint32_t elapsed_time = current_time - last_process_time_ms_; |
82 if (kAdmMaxIdleTimeProcess < elapsed_time) { | 82 if (kAdmMaxIdleTimeProcess < elapsed_time) { |
83 return 0; | 83 return 0; |
84 } | 84 } |
85 return kAdmMaxIdleTimeProcess - elapsed_time; | 85 return kAdmMaxIdleTimeProcess - elapsed_time; |
86 } | 86 } |
87 | 87 |
88 void FakeAudioCaptureModule::Process() { | 88 int32_t FakeAudioCaptureModule::Process() { |
89 last_process_time_ms_ = rtc::Time(); | 89 last_process_time_ms_ = rtc::Time(); |
| 90 return 0; |
90 } | 91 } |
91 | 92 |
92 int32_t FakeAudioCaptureModule::ActiveAudioLayer( | 93 int32_t FakeAudioCaptureModule::ActiveAudioLayer( |
93 AudioLayer* /*audio_layer*/) const { | 94 AudioLayer* /*audio_layer*/) const { |
94 ASSERT(false); | 95 ASSERT(false); |
95 return 0; | 96 return 0; |
96 } | 97 } |
97 | 98 |
98 webrtc::AudioDeviceModule::ErrorCode FakeAudioCaptureModule::LastError() const { | 99 webrtc::AudioDeviceModule::ErrorCode FakeAudioCaptureModule::LastError() const { |
99 ASSERT(false); | 100 ASSERT(false); |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 kNumberOfChannels, | 718 kNumberOfChannels, |
718 kSamplesPerSecond, kTotalDelayMs, | 719 kSamplesPerSecond, kTotalDelayMs, |
719 kClockDriftMs, current_mic_level, | 720 kClockDriftMs, current_mic_level, |
720 key_pressed, | 721 key_pressed, |
721 current_mic_level) != 0) { | 722 current_mic_level) != 0) { |
722 ASSERT(false); | 723 ASSERT(false); |
723 } | 724 } |
724 SetMicrophoneVolume(current_mic_level); | 725 SetMicrophoneVolume(current_mic_level); |
725 } | 726 } |
726 | 727 |
OLD | NEW |