| 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_IOS_AUDIO_DEVICE_IOS_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_DEVICE_IOS_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_DEVICE_IOS_H_ | 12 #define WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_DEVICE_IOS_H_ |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 | 15 |
| 16 #include "WebRTC/RTCMacros.h" | 16 #include "WebRTC/RTCMacros.h" |
| 17 #include "webrtc/base/buffer.h" | |
| 18 #include "webrtc/base/gtest_prod_util.h" | |
| 19 #include "webrtc/base/thread.h" | |
| 20 #include "webrtc/base/thread_annotations.h" | |
| 21 #include "webrtc/base/thread_checker.h" | |
| 22 #include "webrtc/modules/audio_device/audio_device_generic.h" | 17 #include "webrtc/modules/audio_device/audio_device_generic.h" |
| 23 #include "webrtc/modules/audio_device/ios/audio_session_observer.h" | 18 #include "webrtc/modules/audio_device/ios/audio_session_observer.h" |
| 24 #include "webrtc/modules/audio_device/ios/voice_processing_audio_unit.h" | 19 #include "webrtc/modules/audio_device/ios/voice_processing_audio_unit.h" |
| 20 #include "webrtc/rtc_base/buffer.h" |
| 21 #include "webrtc/rtc_base/gtest_prod_util.h" |
| 22 #include "webrtc/rtc_base/thread.h" |
| 23 #include "webrtc/rtc_base/thread_annotations.h" |
| 24 #include "webrtc/rtc_base/thread_checker.h" |
| 25 | 25 |
| 26 RTC_FWD_DECL_OBJC_CLASS(RTCAudioSessionDelegateAdapter); | 26 RTC_FWD_DECL_OBJC_CLASS(RTCAudioSessionDelegateAdapter); |
| 27 | 27 |
| 28 namespace webrtc { | 28 namespace webrtc { |
| 29 | 29 |
| 30 class FineAudioBuffer; | 30 class FineAudioBuffer; |
| 31 | 31 |
| 32 // Implements full duplex 16-bit mono PCM audio support for iOS using a | 32 // Implements full duplex 16-bit mono PCM audio support for iOS using a |
| 33 // Voice-Processing (VP) I/O audio unit in Core Audio. The VP I/O audio unit | 33 // Voice-Processing (VP) I/O audio unit in Core Audio. The VP I/O audio unit |
| 34 // supports audio echo cancellation. It also adds automatic gain control, | 34 // supports audio echo cancellation. It also adds automatic gain control, |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 // Contains the time for when the last output volume change was detected. | 312 // Contains the time for when the last output volume change was detected. |
| 313 int64_t last_output_volume_change_time_ ACCESS_ON(thread_checker_); | 313 int64_t last_output_volume_change_time_ ACCESS_ON(thread_checker_); |
| 314 | 314 |
| 315 // Exposes private members for testing purposes only. | 315 // Exposes private members for testing purposes only. |
| 316 FRIEND_TEST_ALL_PREFIXES(AudioDeviceTest, testInterruptedAudioSession); | 316 FRIEND_TEST_ALL_PREFIXES(AudioDeviceTest, testInterruptedAudioSession); |
| 317 }; | 317 }; |
| 318 | 318 |
| 319 } // namespace webrtc | 319 } // namespace webrtc |
| 320 | 320 |
| 321 #endif // WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_DEVICE_IOS_H_ | 321 #endif // WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_DEVICE_IOS_H_ |
| OLD | NEW |