| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #ifndef WEBRTC_TEST_FAKE_AUDIO_DEVICE_H_ | 10 #ifndef WEBRTC_TEST_FAKE_AUDIO_DEVICE_H_ |
| 11 #define WEBRTC_TEST_FAKE_AUDIO_DEVICE_H_ | 11 #define WEBRTC_TEST_FAKE_AUDIO_DEVICE_H_ |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "webrtc/base/array_view.h" | |
| 18 #include "webrtc/base/buffer.h" | |
| 19 #include "webrtc/base/criticalsection.h" | |
| 20 #include "webrtc/base/event.h" | |
| 21 #include "webrtc/base/platform_thread.h" | |
| 22 #include "webrtc/modules/audio_device/include/fake_audio_device.h" | 17 #include "webrtc/modules/audio_device/include/fake_audio_device.h" |
| 18 #include "webrtc/rtc_base/array_view.h" |
| 19 #include "webrtc/rtc_base/buffer.h" |
| 20 #include "webrtc/rtc_base/criticalsection.h" |
| 21 #include "webrtc/rtc_base/event.h" |
| 22 #include "webrtc/rtc_base/platform_thread.h" |
| 23 #include "webrtc/typedefs.h" | 23 #include "webrtc/typedefs.h" |
| 24 | 24 |
| 25 namespace webrtc { | 25 namespace webrtc { |
| 26 | 26 |
| 27 class EventTimerWrapper; | 27 class EventTimerWrapper; |
| 28 | 28 |
| 29 namespace test { | 29 namespace test { |
| 30 | 30 |
| 31 // FakeAudioDevice implements an AudioDevice module that can act both as a | 31 // FakeAudioDevice implements an AudioDevice module that can act both as a |
| 32 // capturer and a renderer. It will use 10ms audio frames. | 32 // capturer and a renderer. It will use 10ms audio frames. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 std::vector<int16_t> playout_buffer_ GUARDED_BY(lock_); | 135 std::vector<int16_t> playout_buffer_ GUARDED_BY(lock_); |
| 136 rtc::BufferT<int16_t> recording_buffer_ GUARDED_BY(lock_); | 136 rtc::BufferT<int16_t> recording_buffer_ GUARDED_BY(lock_); |
| 137 | 137 |
| 138 std::unique_ptr<EventTimerWrapper> tick_; | 138 std::unique_ptr<EventTimerWrapper> tick_; |
| 139 rtc::PlatformThread thread_; | 139 rtc::PlatformThread thread_; |
| 140 }; | 140 }; |
| 141 } // namespace test | 141 } // namespace test |
| 142 } // namespace webrtc | 142 } // namespace webrtc |
| 143 | 143 |
| 144 #endif // WEBRTC_TEST_FAKE_AUDIO_DEVICE_H_ | 144 #endif // WEBRTC_TEST_FAKE_AUDIO_DEVICE_H_ |
| OLD | NEW |