| 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 5ec071625a26e141250175f4fd5104bffaed539d..a2f192ca00bdf18ee6554d9cef9aeb5d4e3344d1 100644
|
| --- a/webrtc/modules/audio_device/android/audio_manager.h
|
| +++ b/webrtc/modules/audio_device/android/audio_manager.h
|
| @@ -97,13 +97,13 @@ class AudioManager {
|
|
|
| bool Init();
|
| void Close();
|
| - void SetCommunicationMode(bool enable);
|
| + bool IsCommunicationModeEnabled();
|
|
|
| private:
|
| rtc::scoped_ptr<GlobalRef> audio_manager_;
|
| jmethodID init_;
|
| jmethodID dispose_;
|
| - jmethodID set_communication_mode_;
|
| + jmethodID is_communication_mode_enabled_;
|
| };
|
|
|
| AudioManager();
|
| @@ -118,9 +118,8 @@ class AudioManager {
|
| // Revert any setting done by Init().
|
| bool Close();
|
|
|
| - // Sets audio mode to AudioManager.MODE_IN_COMMUNICATION if |enable| is true.
|
| - // Restores audio mode that was stored in Init() if |enable| is false.
|
| - void SetCommunicationMode(bool enable);
|
| + // Returns true if current audio mode is AudioManager.MODE_IN_COMMUNICATION.
|
| + bool IsCommunicationModeEnabled() const;
|
|
|
| // Native audio parameters stored during construction.
|
| const AudioParameters& GetPlayoutAudioParameters();
|
|
|