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

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

Issue 2895263006: Add observer for AVAudioSession.outputVolume (Closed)
Patch Set: Method rename and cleanup. Created 3 years, 6 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 /** Called on a WebRTC thread when the audio device is notified to begin 67 /** Called on a WebRTC thread when the audio device is notified to begin
68 * playback or recording. 68 * playback or recording.
69 */ 69 */
70 - (void)audioSessionDidStartPlayOrRecord:(RTCAudioSession *)session; 70 - (void)audioSessionDidStartPlayOrRecord:(RTCAudioSession *)session;
71 71
72 /** Called on a WebRTC thread when the audio device is notified to stop 72 /** Called on a WebRTC thread when the audio device is notified to stop
73 * playback or recording. 73 * playback or recording.
74 */ 74 */
75 - (void)audioSessionDidStopPlayOrRecord:(RTCAudioSession *)session; 75 - (void)audioSessionDidStopPlayOrRecord:(RTCAudioSession *)session;
76 76
77 /** Called when the AVAudioSession output volume value changes. */
78 - (void)audioSession:(RTCAudioSession *)audioSession
79 didChangeOutputVolume:(float)outputVolume;
80
77 @end 81 @end
78 82
79 /** This is a protocol used to inform RTCAudioSession when the audio session 83 /** This is a protocol used to inform RTCAudioSession when the audio session
80 * activation state has changed outside of RTCAudioSession. The current known u se 84 * activation state has changed outside of RTCAudioSession. The current known u se
81 * case of this is when CallKit activates the audio session for the application 85 * case of this is when CallKit activates the audio session for the application
82 */ 86 */
83 RTC_EXPORT 87 RTC_EXPORT
84 @protocol RTCAudioSessionActivationDelegate <NSObject> 88 @protocol RTCAudioSessionActivationDelegate <NSObject>
85 89
86 /** Called when the audio session is activated outside of the app by iOS. */ 90 /** Called when the audio session is activated outside of the app by iOS. */
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 /** Convenience method that calls both setConfiguration and setActive. 233 /** Convenience method that calls both setConfiguration and setActive.
230 * |lockForConfiguration| must be called first. 234 * |lockForConfiguration| must be called first.
231 */ 235 */
232 - (BOOL)setConfiguration:(RTCAudioSessionConfiguration *)configuration 236 - (BOOL)setConfiguration:(RTCAudioSessionConfiguration *)configuration
233 active:(BOOL)active 237 active:(BOOL)active
234 error:(NSError **)outError; 238 error:(NSError **)outError;
235 239
236 @end 240 @end
237 241
238 NS_ASSUME_NONNULL_END 242 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698