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 10 matching lines...) Expand all Loading... |
21 public: | 21 public: |
22 // Called when audio session interruption begins. | 22 // Called when audio session interruption begins. |
23 virtual void OnInterruptionBegin() = 0; | 23 virtual void OnInterruptionBegin() = 0; |
24 | 24 |
25 // Called when audio session interruption ends. | 25 // Called when audio session interruption ends. |
26 virtual void OnInterruptionEnd() = 0; | 26 virtual void OnInterruptionEnd() = 0; |
27 | 27 |
28 // Called when audio route changes. | 28 // Called when audio route changes. |
29 virtual void OnValidRouteChange() = 0; | 29 virtual void OnValidRouteChange() = 0; |
30 | 30 |
31 // Called when audio session has been configured for WebRTC. | 31 // Called when the ability to play or record changes. |
32 virtual void OnConfiguredForWebRTC() = 0; | 32 virtual void OnCanPlayOrRecordChange(bool can_play_or_record) = 0; |
33 | 33 |
34 protected: | 34 protected: |
35 virtual ~AudioSessionObserver() {} | 35 virtual ~AudioSessionObserver() {} |
36 }; | 36 }; |
37 | 37 |
38 } // namespace webrtc | 38 } // namespace webrtc |
39 | 39 |
40 #endif // WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_SESSION_OBSERVER_H_ | 40 #endif // WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_SESSION_OBSERVER_H_ |
OLD | NEW |