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 #import <AVFoundation/AVFoundation.h> | 11 #import <AVFoundation/AVFoundation.h> |
12 #import <Foundation/Foundation.h> | 12 #import <Foundation/Foundation.h> |
13 | 13 |
14 #include "webrtc/modules/audio_device/ios/audio_device_ios.h" | 14 #include "webrtc/modules/audio_device/ios/audio_device_ios.h" |
15 | 15 |
16 #include <cmath> | 16 #include <cmath> |
17 | 17 |
| 18 #include "webrtc/api/array_view.h" |
18 #include "webrtc/modules/audio_device/fine_audio_buffer.h" | 19 #include "webrtc/modules/audio_device/fine_audio_buffer.h" |
19 #include "webrtc/rtc_base/array_view.h" | |
20 #include "webrtc/rtc_base/atomicops.h" | 20 #include "webrtc/rtc_base/atomicops.h" |
21 #include "webrtc/rtc_base/bind.h" | 21 #include "webrtc/rtc_base/bind.h" |
22 #include "webrtc/rtc_base/checks.h" | 22 #include "webrtc/rtc_base/checks.h" |
23 #include "webrtc/rtc_base/criticalsection.h" | 23 #include "webrtc/rtc_base/criticalsection.h" |
24 #include "webrtc/rtc_base/logging.h" | 24 #include "webrtc/rtc_base/logging.h" |
25 #include "webrtc/rtc_base/thread.h" | 25 #include "webrtc/rtc_base/thread.h" |
26 #include "webrtc/rtc_base/thread_annotations.h" | 26 #include "webrtc/rtc_base/thread_annotations.h" |
27 #include "webrtc/rtc_base/timeutils.h" | 27 #include "webrtc/rtc_base/timeutils.h" |
28 #include "webrtc/sdk/objc/Framework/Classes/Common/helpers.h" | 28 #include "webrtc/sdk/objc/Framework/Classes/Common/helpers.h" |
29 #include "webrtc/system_wrappers/include/metrics.h" | 29 #include "webrtc/system_wrappers/include/metrics.h" |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 | 955 |
956 // All I/O should be stopped or paused prior to deactivating the audio | 956 // All I/O should be stopped or paused prior to deactivating the audio |
957 // session, hence we deactivate as last action. | 957 // session, hence we deactivate as last action. |
958 [session lockForConfiguration]; | 958 [session lockForConfiguration]; |
959 UnconfigureAudioSession(); | 959 UnconfigureAudioSession(); |
960 [session endWebRTCSession:nil]; | 960 [session endWebRTCSession:nil]; |
961 [session unlockForConfiguration]; | 961 [session unlockForConfiguration]; |
962 } | 962 } |
963 | 963 |
964 } // namespace webrtc | 964 } // namespace webrtc |
OLD | NEW |