| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 ASSERT(false); | 198 ASSERT(false); |
| 199 return 0; | 199 return 0; |
| 200 } | 200 } |
| 201 | 201 |
| 202 int32_t FakeAudioCaptureModule::InitRecording() { | 202 int32_t FakeAudioCaptureModule::InitRecording() { |
| 203 rec_is_initialized_ = true; | 203 rec_is_initialized_ = true; |
| 204 return 0; | 204 return 0; |
| 205 } | 205 } |
| 206 | 206 |
| 207 bool FakeAudioCaptureModule::RecordingIsInitialized() const { | 207 bool FakeAudioCaptureModule::RecordingIsInitialized() const { |
| 208 ASSERT(false); | 208 return rec_is_initialized_; |
| 209 return 0; | |
| 210 } | 209 } |
| 211 | 210 |
| 212 int32_t FakeAudioCaptureModule::StartPlayout() { | 211 int32_t FakeAudioCaptureModule::StartPlayout() { |
| 213 if (!play_is_initialized_) { | 212 if (!play_is_initialized_) { |
| 214 return -1; | 213 return -1; |
| 215 } | 214 } |
| 216 { | 215 { |
| 217 rtc::CritScope cs(&crit_); | 216 rtc::CritScope cs(&crit_); |
| 218 playing_ = true; | 217 playing_ = true; |
| 219 } | 218 } |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 kNumberOfChannels, | 716 kNumberOfChannels, |
| 718 kSamplesPerSecond, kTotalDelayMs, | 717 kSamplesPerSecond, kTotalDelayMs, |
| 719 kClockDriftMs, current_mic_level, | 718 kClockDriftMs, current_mic_level, |
| 720 key_pressed, | 719 key_pressed, |
| 721 current_mic_level) != 0) { | 720 current_mic_level) != 0) { |
| 722 ASSERT(false); | 721 ASSERT(false); |
| 723 } | 722 } |
| 724 SetMicrophoneVolume(current_mic_level); | 723 SetMicrophoneVolume(current_mic_level); |
| 725 } | 724 } |
| 726 | 725 |
| OLD | NEW |