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

Unified Diff: media/audio/audio_input_controller.cc

Issue 13679007: Increased initial timer interval in AIC to reduce risk of false alarms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: media/audio/audio_input_controller.cc
diff --git a/media/audio/audio_input_controller.cc b/media/audio/audio_input_controller.cc
index d83f18b981cde456bd5a5b1fb0f338e88fee2f33..e8fc6e7699711f2d6e51fecc6a9debd602e29483 100644
--- a/media/audio/audio_input_controller.cc
+++ b/media/audio/audio_input_controller.cc
@@ -16,7 +16,13 @@ const int kTimerResetIntervalSeconds = 1;
// audio has faded away.
const int kTimerInitialIntervalSeconds = 4;
#else
-const int kTimerInitialIntervalSeconds = 1;
+// We have received reports that the timer can be too trigger happy on some
+// Mac devices and the initial timer interval has therefore been increased
+// from 1 second to 5 seconds.
+// TODO(henrika): remove usage of timers and add support for proper
+// notification of when the input device is removed.
+// See http://crbug.com/226327 for details.
+const int kTimerInitialIntervalSeconds = 5;
#endif // defined(OS_IOS)
}
« 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