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

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

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Rebase Created 3 years, 11 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
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
11 #include "webrtc/api/test/fakeaudiocapturemodule.h" 11 #include "webrtc/pc/test/fakeaudiocapturemodule.h"
12 12
13 #include "webrtc/base/checks.h" 13 #include "webrtc/base/checks.h"
14 #include "webrtc/base/common.h" 14 #include "webrtc/base/common.h"
15 #include "webrtc/base/refcount.h" 15 #include "webrtc/base/refcount.h"
16 #include "webrtc/base/thread.h" 16 #include "webrtc/base/thread.h"
17 #include "webrtc/base/timeutils.h" 17 #include "webrtc/base/timeutils.h"
18 18
19 // Audio sample value that is high enough that it doesn't occur naturally when 19 // Audio sample value that is high enough that it doesn't occur naturally when
20 // frames are being faked. E.g. NetEq will not generate this large sample value 20 // frames are being faked. E.g. NetEq will not generate this large sample value
21 // unless it has received an audio frame containing a sample of this value. 21 // unless it has received an audio frame containing a sample of this value.
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 kNumberBytesPerSample, 716 kNumberBytesPerSample,
717 kNumberOfChannels, 717 kNumberOfChannels,
718 kSamplesPerSecond, kTotalDelayMs, 718 kSamplesPerSecond, kTotalDelayMs,
719 kClockDriftMs, current_mic_level, 719 kClockDriftMs, current_mic_level,
720 key_pressed, 720 key_pressed,
721 current_mic_level) != 0) { 721 current_mic_level) != 0) {
722 RTC_NOTREACHED(); 722 RTC_NOTREACHED();
723 } 723 }
724 SetMicrophoneVolume(current_mic_level); 724 SetMicrophoneVolume(current_mic_level);
725 } 725 }
OLDNEW
« no previous file with comments | « webrtc/pc/test/fakeaudiocapturemodule.h ('k') | webrtc/pc/test/fakeaudiocapturemodule_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698