OLD | NEW |
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 |
11 #ifndef WEBRTC_MODULES_AUDIO_DEVICE_AUDIO_DEVICE_BUFFER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_DEVICE_AUDIO_DEVICE_BUFFER_H_ |
12 #define WEBRTC_MODULES_AUDIO_DEVICE_AUDIO_DEVICE_BUFFER_H_ | 12 #define WEBRTC_MODULES_AUDIO_DEVICE_AUDIO_DEVICE_BUFFER_H_ |
13 | 13 |
14 #include "webrtc/base/buffer.h" | |
15 #include "webrtc/base/criticalsection.h" | |
16 #include "webrtc/base/task_queue.h" | |
17 #include "webrtc/base/thread_annotations.h" | |
18 #include "webrtc/base/thread_checker.h" | |
19 #include "webrtc/modules/audio_device/include/audio_device.h" | 14 #include "webrtc/modules/audio_device/include/audio_device.h" |
| 15 #include "webrtc/rtc_base/buffer.h" |
| 16 #include "webrtc/rtc_base/criticalsection.h" |
| 17 #include "webrtc/rtc_base/task_queue.h" |
| 18 #include "webrtc/rtc_base/thread_annotations.h" |
| 19 #include "webrtc/rtc_base/thread_checker.h" |
20 #include "webrtc/system_wrappers/include/file_wrapper.h" | 20 #include "webrtc/system_wrappers/include/file_wrapper.h" |
21 #include "webrtc/typedefs.h" | 21 #include "webrtc/typedefs.h" |
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 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // Should *never* be defined in production builds. Only used for testing. | 256 // Should *never* be defined in production builds. Only used for testing. |
257 // When defined, the output signal will be replaced by a sinus tone at 440Hz. | 257 // When defined, the output signal will be replaced by a sinus tone at 440Hz. |
258 #ifdef AUDIO_DEVICE_PLAYS_SINUS_TONE | 258 #ifdef AUDIO_DEVICE_PLAYS_SINUS_TONE |
259 double phase_ ACCESS_ON(playout_thread_checker_); | 259 double phase_ ACCESS_ON(playout_thread_checker_); |
260 #endif | 260 #endif |
261 }; | 261 }; |
262 | 262 |
263 } // namespace webrtc | 263 } // namespace webrtc |
264 | 264 |
265 #endif // WEBRTC_MODULES_AUDIO_DEVICE_AUDIO_DEVICE_BUFFER_H_ | 265 #endif // WEBRTC_MODULES_AUDIO_DEVICE_AUDIO_DEVICE_BUFFER_H_ |
OLD | NEW |