Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm

Issue 1903663002: Build dynamic iOS SDK. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix test gyp Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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" 18 #import "WebRTC/RTCLogging.h"
19 #import "webrtc/modules/audio_device/ios/objc/RTCAudioSession+Private.h" 19 #import "webrtc/modules/audio_device/ios/objc/RTCAudioSession+Private.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 {
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698