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 #include <iostream> | 10 #include <iostream> |
11 #include "webrtc/modules/audio_device/dummy/file_audio_device.h" | 11 #include "webrtc/modules/audio_device/dummy/file_audio_device.h" |
12 #include "webrtc/system_wrappers/interface/sleep.h" | 12 #include "webrtc/system_wrappers/include/sleep.h" |
13 #include "webrtc/system_wrappers/interface/thread_wrapper.h" | 13 #include "webrtc/system_wrappers/include/thread_wrapper.h" |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 | 16 |
17 int kRecordingFixedSampleRate = 48000; | 17 int kRecordingFixedSampleRate = 48000; |
18 int kRecordingNumChannels = 2; | 18 int kRecordingNumChannels = 2; |
19 int kPlayoutFixedSampleRate = 48000; | 19 int kPlayoutFixedSampleRate = 48000; |
20 int kPlayoutNumChannels = 2; | 20 int kPlayoutNumChannels = 2; |
21 int kPlayoutBufferSize = kPlayoutFixedSampleRate / 100 | 21 int kPlayoutBufferSize = kPlayoutFixedSampleRate / 100 |
22 * kPlayoutNumChannels * 2; | 22 * kPlayoutNumChannels * 2; |
23 int kRecordingBufferSize = kRecordingFixedSampleRate / 100 | 23 int kRecordingBufferSize = kRecordingFixedSampleRate / 100 |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 _critSect.Enter(); | 542 _critSect.Enter(); |
543 } | 543 } |
544 } | 544 } |
545 | 545 |
546 _critSect.Leave(); | 546 _critSect.Leave(); |
547 SleepMs(10 - (_clock->CurrentNtpInMilliseconds() - currentTime)); | 547 SleepMs(10 - (_clock->CurrentNtpInMilliseconds() - currentTime)); |
548 return true; | 548 return true; |
549 } | 549 } |
550 | 550 |
551 } // namespace webrtc | 551 } // namespace webrtc |
OLD | NEW |