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

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

Issue 1796983004: Use RTCAudioSessionDelegate in AudioDeviceIOS. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Some nits. Created 4 years, 9 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
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 @property(readonly) NSInteger inputNumberOfChannels; 115 @property(readonly) NSInteger inputNumberOfChannels;
116 @property(readonly) NSInteger outputNumberOfChannels; 116 @property(readonly) NSInteger outputNumberOfChannels;
117 @property(readonly) float outputVolume; 117 @property(readonly) float outputVolume;
118 @property(readonly) NSTimeInterval inputLatency; 118 @property(readonly) NSTimeInterval inputLatency;
119 @property(readonly) NSTimeInterval outputLatency; 119 @property(readonly) NSTimeInterval outputLatency;
120 @property(readonly) NSTimeInterval IOBufferDuration; 120 @property(readonly) NSTimeInterval IOBufferDuration;
121 121
122 /** Default constructor. Do not call init. */ 122 /** Default constructor. Do not call init. */
123 + (instancetype)sharedInstance; 123 + (instancetype)sharedInstance;
124 124
125 /** Adds a delegate, which is held weakly. Even though it's held weakly, callers 125 /** Adds a delegate, which is held weakly. */
126 * should still call |removeDelegate| when it's no longer required to ensure
127 * proper dealloc. This is due to internal use of an NSHashTable.
128 */
129 - (void)addDelegate:(id<RTCAudioSessionDelegate>)delegate; 126 - (void)addDelegate:(id<RTCAudioSessionDelegate>)delegate;
130 /** Removes an added delegate. */ 127 /** Removes an added delegate. */
131 - (void)removeDelegate:(id<RTCAudioSessionDelegate>)delegate; 128 - (void)removeDelegate:(id<RTCAudioSessionDelegate>)delegate;
132 129
133 /** Request exclusive access to the audio session for configuration. This call 130 /** Request exclusive access to the audio session for configuration. This call
134 * will block if the lock is held by another object. 131 * will block if the lock is held by another object.
135 */ 132 */
136 - (void)lockForConfiguration; 133 - (void)lockForConfiguration;
137 /** Relinquishes exclusive access to the audio session. */ 134 /** Relinquishes exclusive access to the audio session. */
138 - (void)unlockForConfiguration; 135 - (void)unlockForConfiguration;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 184
188 /** Configure the audio session for WebRTC. On failure, we will attempt to 185 /** Configure the audio session for WebRTC. On failure, we will attempt to
189 * restore the previously used audio session configuration. 186 * restore the previously used audio session configuration.
190 * |lockForConfiguration| must be called first. 187 * |lockForConfiguration| must be called first.
191 */ 188 */
192 - (BOOL)configureWebRTCSession:(NSError **)outError; 189 - (BOOL)configureWebRTCSession:(NSError **)outError;
193 190
194 @end 191 @end
195 192
196 NS_ASSUME_NONNULL_END 193 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/ios/audio_session_observer.h ('k') | webrtc/modules/audio_device/ios/objc/RTCAudioSession.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698