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 | 10 |
11 #ifndef WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_DEVICE_TEMPLATE_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_DEVICE_TEMPLATE_H_ |
12 #define WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_DEVICE_TEMPLATE_H_ | 12 #define WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_DEVICE_TEMPLATE_H_ |
13 | 13 |
14 #include "webrtc/base/checks.h" | |
15 #include "webrtc/base/logging.h" | |
16 #include "webrtc/base/thread_checker.h" | |
17 #include "webrtc/modules/audio_device/android/audio_manager.h" | 14 #include "webrtc/modules/audio_device/android/audio_manager.h" |
18 #include "webrtc/modules/audio_device/audio_device_generic.h" | 15 #include "webrtc/modules/audio_device/audio_device_generic.h" |
| 16 #include "webrtc/rtc_base/checks.h" |
| 17 #include "webrtc/rtc_base/logging.h" |
| 18 #include "webrtc/rtc_base/thread_checker.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 // InputType/OutputType can be any class that implements the capturing/rendering | 22 // InputType/OutputType can be any class that implements the capturing/rendering |
23 // part of the AudioDeviceGeneric API. | 23 // part of the AudioDeviceGeneric API. |
24 // Construction and destruction must be done on one and the same thread. Each | 24 // Construction and destruction must be done on one and the same thread. Each |
25 // internal implementation of InputType and OutputType will RTC_DCHECK if that | 25 // internal implementation of InputType and OutputType will RTC_DCHECK if that |
26 // is not the case. All implemented methods must also be called on the same | 26 // is not the case. All implemented methods must also be called on the same |
27 // thread. See comments in each InputType/OutputType class for more info. | 27 // thread. See comments in each InputType/OutputType class for more info. |
28 // It is possible to call the two static methods (SetAndroidAudioDeviceObjects | 28 // It is possible to call the two static methods (SetAndroidAudioDeviceObjects |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 OutputType output_; | 554 OutputType output_; |
555 | 555 |
556 InputType input_; | 556 InputType input_; |
557 | 557 |
558 bool initialized_; | 558 bool initialized_; |
559 }; | 559 }; |
560 | 560 |
561 } // namespace webrtc | 561 } // namespace webrtc |
562 | 562 |
563 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_DEVICE_TEMPLATE_H_ | 563 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_DEVICE_TEMPLATE_H_ |
OLD | NEW |