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 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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)audioVolumeDidChange:(float)volume; | |
tkchin_webrtc
2017/05/25 20:24:32
follow delegate naming convention and use the same
| |
79 | |
77 @end | 80 @end |
78 | 81 |
79 /** This is a protocol used to inform RTCAudioSession when the audio session | 82 /** 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 | 83 * 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 | 84 * case of this is when CallKit activates the audio session for the application |
82 */ | 85 */ |
83 RTC_EXPORT | 86 RTC_EXPORT |
84 @protocol RTCAudioSessionActivationDelegate <NSObject> | 87 @protocol RTCAudioSessionActivationDelegate <NSObject> |
85 | 88 |
86 /** Called when the audio session is activated outside of the app by iOS. */ | 89 /** 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 Loading... | |
229 /** Convenience method that calls both setConfiguration and setActive. | 232 /** Convenience method that calls both setConfiguration and setActive. |
230 * |lockForConfiguration| must be called first. | 233 * |lockForConfiguration| must be called first. |
231 */ | 234 */ |
232 - (BOOL)setConfiguration:(RTCAudioSessionConfiguration *)configuration | 235 - (BOOL)setConfiguration:(RTCAudioSessionConfiguration *)configuration |
233 active:(BOOL)active | 236 active:(BOOL)active |
234 error:(NSError **)outError; | 237 error:(NSError **)outError; |
235 | 238 |
236 @end | 239 @end |
237 | 240 |
238 NS_ASSUME_NONNULL_END | 241 NS_ASSUME_NONNULL_END |
OLD | NEW |