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> |
| 17 |
16 #include "webrtc/base/atomicops.h" | 18 #include "webrtc/base/atomicops.h" |
17 #include "webrtc/base/bind.h" | 19 #include "webrtc/base/bind.h" |
18 #include "webrtc/base/checks.h" | 20 #include "webrtc/base/checks.h" |
19 #include "webrtc/base/criticalsection.h" | 21 #include "webrtc/base/criticalsection.h" |
20 #include "webrtc/base/logging.h" | 22 #include "webrtc/base/logging.h" |
21 #include "webrtc/base/thread.h" | 23 #include "webrtc/base/thread.h" |
22 #include "webrtc/base/thread_annotations.h" | 24 #include "webrtc/base/thread_annotations.h" |
23 #include "webrtc/modules/audio_device/fine_audio_buffer.h" | 25 #include "webrtc/modules/audio_device/fine_audio_buffer.h" |
24 #include "webrtc/sdk/objc/Framework/Classes/helpers.h" | 26 #include "webrtc/sdk/objc/Framework/Classes/helpers.h" |
25 | 27 |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 | 826 |
825 // All I/O should be stopped or paused prior to deactivating the audio | 827 // All I/O should be stopped or paused prior to deactivating the audio |
826 // session, hence we deactivate as last action. | 828 // session, hence we deactivate as last action. |
827 [session lockForConfiguration]; | 829 [session lockForConfiguration]; |
828 UnconfigureAudioSession(); | 830 UnconfigureAudioSession(); |
829 [session endWebRTCSession:nil]; | 831 [session endWebRTCSession:nil]; |
830 [session unlockForConfiguration]; | 832 [session unlockForConfiguration]; |
831 } | 833 } |
832 | 834 |
833 } // namespace webrtc | 835 } // namespace webrtc |
OLD | NEW |