summaryrefslogtreecommitdiffstats
path: root/media/audio
diff options
context:
space:
mode:
authorhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-05 10:32:51 +0000
committerhenrika@chromium.org <henrika@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-05 10:32:51 +0000
commit13f15cf324df8d47f2d1b7064586bfadbe9fa239 (patch)
tree68f67ca4938c660238519f78b78d320284af56e2 /media/audio
parent3113151c7eba1f06f9db2b1229323e573861bfc1 (diff)
downloadchromium_src-13f15cf324df8d47f2d1b7064586bfadbe9fa239.zip
chromium_src-13f15cf324df8d47f2d1b7064586bfadbe9fa239.tar.gz
chromium_src-13f15cf324df8d47f2d1b7064586bfadbe9fa239.tar.bz2
Increased initial timer interval to ensure that we don't trigger error callback on certain "slow" Mac devices.
TBR=tommi BUG=226327 TEST=Misc audio input demos in Chrome (WebRTC). Review URL: https://codereview.chromium.org/13679007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio')
-rw-r--r--media/audio/audio_input_controller.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/media/audio/audio_input_controller.cc b/media/audio/audio_input_controller.cc
index d83f18b..e8fc6e7 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)
}