OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
| 3 * |
| 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 |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 |
| 11 #ifndef WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_SESSION_OBSERVER_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_SESSION_OBSERVER_H_ |
| 13 |
| 14 #include "webrtc/base/asyncinvoker.h" |
| 15 #include "webrtc/base/thread.h" |
| 16 |
| 17 namespace webrtc { |
| 18 |
| 19 // Observer interface for listening to AVAudioSession events. |
| 20 class AudioSessionObserver { |
| 21 public: |
| 22 // Called when audio session interruption begins. |
| 23 virtual void OnInterruptionBegin() = 0; |
| 24 |
| 25 // Called when audio session interruption ends. |
| 26 virtual void OnInterruptionEnd() = 0; |
| 27 |
| 28 // Called when audio route changes. |
| 29 virtual void OnValidRouteChange() = 0; |
| 30 |
| 31 protected: |
| 32 virtual ~AudioSessionObserver() {} |
| 33 }; |
| 34 |
| 35 } // namespace webrtc |
| 36 |
| 37 #endif // WEBRTC_MODULES_AUDIO_DEVICE_IOS_AUDIO_SESSION_OBSERVER_H_ |
OLD | NEW |