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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 /** Called on a system notification thread when AVAudioSession changes the | 45 /** Called on a system notification thread when AVAudioSession changes the |
46 * route. | 46 * route. |
47 */ | 47 */ |
48 - (void)audioSessionDidChangeRoute:(RTCAudioSession *)session | 48 - (void)audioSessionDidChangeRoute:(RTCAudioSession *)session |
49 reason:(AVAudioSessionRouteChangeReason)reason | 49 reason:(AVAudioSessionRouteChangeReason)reason |
50 previousRoute:(AVAudioSessionRouteDescription *)previousRoute; | 50 previousRoute:(AVAudioSessionRouteDescription *)previousRoute; |
51 | 51 |
52 /** Called on a system notification thread when AVAudioSession media server | 52 /** Called on a system notification thread when AVAudioSession media server |
53 * terminates. | 53 * terminates. |
54 */ | 54 */ |
55 - (void)audioSessionMediaServicesWereLost:(RTCAudioSession *)session; | 55 - (void)audioSessionMediaServerTerminated:(RTCAudioSession *)session; |
56 | 56 |
57 /** Called on a system notification thread when AVAudioSession media server | 57 /** Called on a system notification thread when AVAudioSession media server |
58 * restarts. | 58 * restarts. |
59 */ | 59 */ |
60 - (void)audioSessionMediaServicesWereReset:(RTCAudioSession *)session; | 60 - (void)audioSessionMediaServerReset:(RTCAudioSession *)session; |
61 | 61 |
62 // TODO(tkchin): Maybe handle SilenceSecondaryAudioHintNotification. | 62 // TODO(tkchin): Maybe handle SilenceSecondaryAudioHintNotification. |
63 | 63 |
64 - (void)audioSession:(RTCAudioSession *)session | 64 - (void)audioSession:(RTCAudioSession *)session |
65 didChangeCanPlayOrRecord:(BOOL)canPlayOrRecord; | 65 didChangeCanPlayOrRecord:(BOOL)canPlayOrRecord; |
66 | 66 |
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; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 /** Convenience method that calls both setConfiguration and setActive. | 215 /** Convenience method that calls both setConfiguration and setActive. |
216 * |lockForConfiguration| must be called first. | 216 * |lockForConfiguration| must be called first. |
217 */ | 217 */ |
218 - (BOOL)setConfiguration:(RTCAudioSessionConfiguration *)configuration | 218 - (BOOL)setConfiguration:(RTCAudioSessionConfiguration *)configuration |
219 active:(BOOL)active | 219 active:(BOOL)active |
220 error:(NSError **)outError; | 220 error:(NSError **)outError; |
221 | 221 |
222 @end | 222 @end |
223 | 223 |
224 NS_ASSUME_NONNULL_END | 224 NS_ASSUME_NONNULL_END |
OLD | NEW |