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

Unified Diff: webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java

Issue 2025423003: Adds WebRtcAudioTrack.setSpeakerMute() API (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Improved logging Created 4 years, 7 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
« no previous file with comments | « no previous file | webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java
diff --git a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java
index df54fa28ba711f203ab264b9badb9a26febcb242..d5ab84023f3d3688d4ca1f42de6a73ef374ff4a4 100644
--- a/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java
+++ b/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java
@@ -284,9 +284,10 @@ public class WebRtcAudioRecord {
private native void nativeDataIsRecorded(int bytes, long nativeAudioRecord);
- // TODO(glaznev): remove this API once SW mic mute can use AudioTrack.setEnabled().
+ // Sets all recorded samples to zero if |mute| is true, i.e., ensures that
+ // the microphone is muted.
public static void setMicrophoneMute(boolean mute) {
- Logging.w(TAG, "setMicrophoneMute API will be deprecated soon.");
+ Logging.w(TAG, "setMicrophoneMute(" + mute + ")");
microphoneMute = mute;
}
}
« no previous file with comments | « no previous file | webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698