| Index: webrtc/modules/audio_device/android/audio_manager.h
|
| diff --git a/webrtc/modules/audio_device/android/audio_manager.h b/webrtc/modules/audio_device/android/audio_manager.h
|
| index 341d426e418bc99d7ed4c7297f1759f3d036c14a..8c32f0b08221deae8470bf8fdd6830becebdf49c 100644
|
| --- a/webrtc/modules/audio_device/android/audio_manager.h
|
| +++ b/webrtc/modules/audio_device/android/audio_manager.h
|
| @@ -47,6 +47,7 @@ class AudioManager {
|
|
|
| bool Init();
|
| void Close();
|
| + void SetCommunicationMode(bool enable);
|
| bool IsCommunicationModeEnabled();
|
| bool IsDeviceBlacklistedForOpenSLESUsage();
|
|
|
| @@ -54,6 +55,7 @@ class AudioManager {
|
| std::unique_ptr<GlobalRef> audio_manager_;
|
| jmethodID init_;
|
| jmethodID dispose_;
|
| + jmethodID set_communication_mode_;
|
| jmethodID is_communication_mode_enabled_;
|
| jmethodID is_device_blacklisted_for_open_sles_usage_;
|
| };
|
| @@ -82,6 +84,9 @@ class AudioManager {
|
| // Revert any setting done by Init().
|
| bool Close();
|
|
|
| + // Set audio mode to AudioManager.MODE_IN_COMMUNICATION if |enable| is true
|
| + // and AudioManager.MODE_NORMAL otherwise.
|
| + void SetCommunicationMode(bool enable);
|
| // Returns true if current audio mode is AudioManager.MODE_IN_COMMUNICATION.
|
| bool IsCommunicationModeEnabled() const;
|
|
|
|
|