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

Unified Diff: media/audio/audio_input_controller.cc

Issue 645923002: Add support for audio input mute detection on all platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: xians@ Created 6 years, 2 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: media/audio/audio_input_controller.cc
diff --git a/media/audio/audio_input_controller.cc b/media/audio/audio_input_controller.cc
index 72239f0d9c30efbdc80290988e787cee57e1b531..27741c9440690a558a46ccd632f21f3f80e97eb4 100644
--- a/media/audio/audio_input_controller.cc
+++ b/media/audio/audio_input_controller.cc
@@ -599,6 +599,8 @@ void AudioInputController::DoLogAudioLevels(float level_dbfs,
log_string += " <=> low microphone level!";
handler_->OnLog(this, log_string);
+ DVLOG(1) << "IsMuted: " << stream_->IsMuted();
+
// Try to detect if the user has enabled hardware mute by pressing the mute
// button in audio settings for the selected microphone. The idea here is to
// detect when all input samples are zeros but the actual volume slider is

Powered by Google App Engine
This is Rietveld 408576698