| 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 int32_t FakeAudioCaptureModule::Process() { | 88 void FakeAudioCaptureModule::Process() { |
| 89 last_process_time_ms_ = rtc::Time(); | 89 last_process_time_ms_ = rtc::Time(); |
| 90 return 0; | |
| 91 } | 90 } |
| 92 | 91 |
| 93 int32_t FakeAudioCaptureModule::ActiveAudioLayer( | 92 int32_t FakeAudioCaptureModule::ActiveAudioLayer( |
| 94 AudioLayer* /*audio_layer*/) const { | 93 AudioLayer* /*audio_layer*/) const { |
| 95 ASSERT(false); | 94 ASSERT(false); |
| 96 return 0; | 95 return 0; |
| 97 } | 96 } |
| 98 | 97 |
| 99 webrtc::AudioDeviceModule::ErrorCode FakeAudioCaptureModule::LastError() const { | 98 webrtc::AudioDeviceModule::ErrorCode FakeAudioCaptureModule::LastError() const { |
| 100 ASSERT(false); | 99 ASSERT(false); |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 kNumberOfChannels, | 717 kNumberOfChannels, |
| 719 kSamplesPerSecond, kTotalDelayMs, | 718 kSamplesPerSecond, kTotalDelayMs, |
| 720 kClockDriftMs, current_mic_level, | 719 kClockDriftMs, current_mic_level, |
| 721 key_pressed, | 720 key_pressed, |
| 722 current_mic_level) != 0) { | 721 current_mic_level) != 0) { |
| 723 ASSERT(false); | 722 ASSERT(false); |
| 724 } | 723 } |
| 725 SetMicrophoneVolume(current_mic_level); | 724 SetMicrophoneVolume(current_mic_level); |
| 726 } | 725 } |
| 727 | 726 |
| OLD | NEW |