OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 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 "webrtc/modules/audio_device/ios/objc/RTCAudioSession.h" | 11 #import "webrtc/modules/audio_device/ios/objc/RTCAudioSession.h" |
12 | 12 |
13 #include "webrtc/base/atomicops.h" | 13 #include "webrtc/base/atomicops.h" |
14 #include "webrtc/base/checks.h" | 14 #include "webrtc/base/checks.h" |
15 #include "webrtc/base/criticalsection.h" | 15 #include "webrtc/base/criticalsection.h" |
16 #include "webrtc/modules/audio_device/ios/audio_device_ios.h" | 16 #include "webrtc/modules/audio_device/ios/audio_device_ios.h" |
17 | 17 |
18 #import "webrtc/base/objc/RTCLogging.h" | |
19 #import "webrtc/modules/audio_device/ios/objc/RTCAudioSession+Private.h" | 18 #import "webrtc/modules/audio_device/ios/objc/RTCAudioSession+Private.h" |
| 19 #import "webrtc/sdk/objc/Framework/Headers/WebRTC/RTCLogging.h" |
20 | 20 |
21 NSString * const kRTCAudioSessionErrorDomain = @"org.webrtc.RTCAudioSession"; | 21 NSString * const kRTCAudioSessionErrorDomain = @"org.webrtc.RTCAudioSession"; |
22 NSInteger const kRTCAudioSessionErrorLockRequired = -1; | 22 NSInteger const kRTCAudioSessionErrorLockRequired = -1; |
23 NSInteger const kRTCAudioSessionErrorConfiguration = -2; | 23 NSInteger const kRTCAudioSessionErrorConfiguration = -2; |
24 | 24 |
25 // This class needs to be thread-safe because it is accessed from many threads. | 25 // This class needs to be thread-safe because it is accessed from many threads. |
26 // TODO(tkchin): Consider more granular locking. We're not expecting a lot of | 26 // TODO(tkchin): Consider more granular locking. We're not expecting a lot of |
27 // lock contention so coarse locks should be fine for now. | 27 // lock contention so coarse locks should be fine for now. |
28 @implementation RTCAudioSession { | 28 @implementation RTCAudioSession { |
29 rtc::CriticalSection _crit; | 29 rtc::CriticalSection _crit; |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 - (void)notifyDidUnconfigure { | 747 - (void)notifyDidUnconfigure { |
748 for (auto delegate : self.delegates) { | 748 for (auto delegate : self.delegates) { |
749 SEL sel = @selector(audioSessionDidUnconfigure:); | 749 SEL sel = @selector(audioSessionDidUnconfigure:); |
750 if ([delegate respondsToSelector:sel]) { | 750 if ([delegate respondsToSelector:sel]) { |
751 [delegate audioSessionDidUnconfigure:self]; | 751 [delegate audioSessionDidUnconfigure:self]; |
752 } | 752 } |
753 } | 753 } |
754 } | 754 } |
755 | 755 |
756 @end | 756 @end |
OLD | NEW |