Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Unified Diff: webrtc/modules/audio_device/android/audio_manager.h

Issue 1165923002: Removes automatic setting of COMM mode in WebRTC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removed CHECK Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « webrtc/modules/audio_device/android/audio_device_template.h ('k') | webrtc/modules/audio_device/android/audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698