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

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

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Rebase Created 4 years 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/common.h" 13 #include "webrtc/base/common.h"
14 #include "webrtc/base/refcount.h" 14 #include "webrtc/base/refcount.h"
15 #include "webrtc/base/thread.h" 15 #include "webrtc/base/thread.h"
16 #include "webrtc/base/timeutils.h" 16 #include "webrtc/base/timeutils.h"
17 17
18 // Audio sample value that is high enough that it doesn't occur naturally when 18 // Audio sample value that is high enough that it doesn't occur naturally when
19 // frames are being faked. E.g. NetEq will not generate this large sample value 19 // frames are being faked. E.g. NetEq will not generate this large sample value
20 // unless it has received an audio frame containing a sample of this value. 20 // unless it has received an audio frame containing a sample of this value.
21 // Even simpler buffers would likely just contain audio sample values of 0. 21 // Even simpler buffers would likely just contain audio sample values of 0.
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 kNumberBytesPerSample, 715 kNumberBytesPerSample,
716 kNumberOfChannels, 716 kNumberOfChannels,
717 kSamplesPerSecond, kTotalDelayMs, 717 kSamplesPerSecond, kTotalDelayMs,
718 kClockDriftMs, current_mic_level, 718 kClockDriftMs, current_mic_level,
719 key_pressed, 719 key_pressed,
720 current_mic_level) != 0) { 720 current_mic_level) != 0) {
721 ASSERT(false); 721 ASSERT(false);
722 } 722 }
723 SetMicrophoneVolume(current_mic_level); 723 SetMicrophoneVolume(current_mic_level);
724 } 724 }
725
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698