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

Unified Diff: content/browser/renderer_host/media/audio_input_renderer_host.cc

Issue 618663003: Fix for keyboard mic: set flag in AudioEntry so that we unregister. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@strip_kmic_channel_if_no_ap
Patch Set: Code review. 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/audio_input_renderer_host.cc
diff --git a/content/browser/renderer_host/media/audio_input_renderer_host.cc b/content/browser/renderer_host/media/audio_input_renderer_host.cc
index b7ae57de0eeab5bcedf9a01b9ee36406a8eae228..83aa43cf4ba9322da6a754578030631b177f0d03 100644
--- a/content/browser/renderer_host/media/audio_input_renderer_host.cc
+++ b/content/browser/renderer_host/media/audio_input_renderer_host.cc
@@ -414,6 +414,13 @@ void AudioInputRendererHost::DoCreateStream(
oss << ", AGC=" << config.automatic_gain_control;
}
+#if defined(OS_CHROMEOS)
+ if (config.params.channel_layout() ==
+ media::CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC) {
+ entry->has_keyboard_mic_ = true;
+ }
+#endif
+
MediaStreamManager::SendMessageToNativeLog(oss.str());
DVLOG(1) << oss.str();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698