OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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/base/checks.h" |
| 12 #include "webrtc/base/logging.h" |
| 13 #include "webrtc/base/platform_thread.h" |
11 #include "webrtc/modules/audio_device/dummy/file_audio_device.h" | 14 #include "webrtc/modules/audio_device/dummy/file_audio_device.h" |
12 #include "webrtc/rtc_base/checks.h" | |
13 #include "webrtc/rtc_base/logging.h" | |
14 #include "webrtc/rtc_base/platform_thread.h" | |
15 #include "webrtc/system_wrappers/include/sleep.h" | 15 #include "webrtc/system_wrappers/include/sleep.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 const int kRecordingFixedSampleRate = 48000; | 19 const int kRecordingFixedSampleRate = 48000; |
20 const size_t kRecordingNumChannels = 2; | 20 const size_t kRecordingNumChannels = 2; |
21 const int kPlayoutFixedSampleRate = 48000; | 21 const int kPlayoutFixedSampleRate = 48000; |
22 const size_t kPlayoutNumChannels = 2; | 22 const size_t kPlayoutNumChannels = 2; |
23 const size_t kPlayoutBufferSize = | 23 const size_t kPlayoutBufferSize = |
24 kPlayoutFixedSampleRate / 100 * kPlayoutNumChannels * 2; | 24 kPlayoutFixedSampleRate / 100 * kPlayoutNumChannels * 2; |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 | 539 |
540 int64_t deltaTimeMillis = rtc::TimeMillis() - currentTime; | 540 int64_t deltaTimeMillis = rtc::TimeMillis() - currentTime; |
541 if (deltaTimeMillis < 10) { | 541 if (deltaTimeMillis < 10) { |
542 SleepMs(10 - deltaTimeMillis); | 542 SleepMs(10 - deltaTimeMillis); |
543 } | 543 } |
544 | 544 |
545 return true; | 545 return true; |
546 } | 546 } |
547 | 547 |
548 } // namespace webrtc | 548 } // namespace webrtc |
OLD | NEW |