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

Side by Side Diff: modules/audio_device/audio_device_buffer.h

Issue 3020493002: Remove AudioDeviceObserver and make ADM not inherit from the Module interface.
Patch Set: linux build error Created 3 years, 2 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 (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 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 10 matching lines...) Expand all
21 #include "typedefs.h" // NOLINT(build/include) 21 #include "typedefs.h" // NOLINT(build/include)
22 22
23 namespace webrtc { 23 namespace webrtc {
24 24
25 // Delta times between two successive playout callbacks are limited to this 25 // Delta times between two successive playout callbacks are limited to this
26 // value before added to an internal array. 26 // value before added to an internal array.
27 const size_t kMaxDeltaTimeInMs = 500; 27 const size_t kMaxDeltaTimeInMs = 500;
28 // TODO(henrika): remove when no longer used by external client. 28 // TODO(henrika): remove when no longer used by external client.
29 const size_t kMaxBufferSizeBytes = 3840; // 10ms in stereo @ 96kHz 29 const size_t kMaxBufferSizeBytes = 3840; // 10ms in stereo @ 96kHz
30 30
31 class AudioDeviceObserver;
32
33 class AudioDeviceBuffer { 31 class AudioDeviceBuffer {
34 public: 32 public:
35 enum LogState { 33 enum LogState {
36 LOG_START = 0, 34 LOG_START = 0,
37 LOG_STOP, 35 LOG_STOP,
38 LOG_ACTIVE, 36 LOG_ACTIVE,
39 }; 37 };
40 38
41 struct Stats { 39 struct Stats {
42 void ResetRecStats() { 40 void ResetRecStats() {
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // Should *never* be defined in production builds. Only used for testing. 252 // Should *never* be defined in production builds. Only used for testing.
255 // When defined, the output signal will be replaced by a sinus tone at 440Hz. 253 // When defined, the output signal will be replaced by a sinus tone at 440Hz.
256 #ifdef AUDIO_DEVICE_PLAYS_SINUS_TONE 254 #ifdef AUDIO_DEVICE_PLAYS_SINUS_TONE
257 double phase_ RTC_ACCESS_ON(playout_thread_checker_); 255 double phase_ RTC_ACCESS_ON(playout_thread_checker_);
258 #endif 256 #endif
259 }; 257 };
260 258
261 } // namespace webrtc 259 } // namespace webrtc
262 260
263 #endif // MODULES_AUDIO_DEVICE_AUDIO_DEVICE_BUFFER_H_ 261 #endif // MODULES_AUDIO_DEVICE_AUDIO_DEVICE_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698