Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: webrtc/api/test/fakeaudiocapturemodule.cc

Issue 1827263002: Early initialize recording on the ADM from WebRtcVoiceMediaChannel. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: breaking test Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698