Removes automatic setting of COMM mode in WebRTC.
It is now up to the application to ensure that it is in COMM mode before any audio streaming is started. BUG=b/21571563 R=glaznev@webrtc.org Review URL: https://codereview.webrtc.org/1165923002 Cr-Commit-Position: refs/heads/master@{#9383}
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user