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

Unified Diff: content/renderer/media/webrtc_audio_renderer.cc

Issue 12218036: Enable audio capture on Android (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: disable agc test which is flanky on Android Created 7 years, 10 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: content/renderer/media/webrtc_audio_renderer.cc
===================================================================
--- content/renderer/media/webrtc_audio_renderer.cc (revision 181622)
+++ content/renderer/media/webrtc_audio_renderer.cc (working copy)
@@ -34,7 +34,9 @@
#elif defined(OS_LINUX) || defined(OS_OPENBSD)
const int kValidOutputRates[] = {48000, 44100};
#elif defined(OS_ANDROID)
-// On Android, the most popular sampling rate is 16000.
+// TODO(leozwang): We want to use native sampling rate on Android to achieve
+// low latency, currently 16000 is used to work around audio problem on some
+// Android devices.
const int kValidOutputRates[] = {48000, 44100, 16000};
#else
const int kValidOutputRates[] = {44100};

Powered by Google App Engine
This is Rietveld 408576698