Bug 1002340 - Allow gUM fake audio timers to skip if we overrun. r=bsmedberg, a=sledru
authorRandell Jesup <rjesup@jesup.org>
Wed, 07 May 2014 17:36:41 -0400
changeset 199316 0298a65d38759304592323e2436925832a52d281
parent 199315 80b59b6b4da519668e39390a9cb74ed8bada9282
child 199317 2f69e76d42382a2aed557152a9ec1233a153d75a
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg, sledru
bugs1002340
milestone31.0a2
Bug 1002340 - Allow gUM fake audio timers to skip if we overrun. r=bsmedberg, a=sledru
content/media/webrtc/MediaEngineDefault.cpp
--- a/content/media/webrtc/MediaEngineDefault.cpp
+++ b/content/media/webrtc/MediaEngineDefault.cpp
@@ -420,20 +420,20 @@ MediaEngineDefaultAudioSource::Start(Sou
 
   // Remember TrackID so we can finish later
   mTrackID = aID;
 
   // 1 Audio frame per 10ms
 #if defined(MOZ_WIDGET_GONK) && defined(DEBUG)
 // B2G emulator debug is very, very slow and has problems dealing with realtime audio inputs
   mTimer->InitWithCallback(this, MediaEngine::DEFAULT_AUDIO_TIMER_MS*10,
-                           nsITimer::TYPE_REPEATING_PRECISE);
+                           nsITimer::TYPE_REPEATING_PRECISE_CAN_SKIP);
 #else
   mTimer->InitWithCallback(this, MediaEngine::DEFAULT_AUDIO_TIMER_MS,
-                           nsITimer::TYPE_REPEATING_PRECISE);
+                           nsITimer::TYPE_REPEATING_PRECISE_CAN_SKIP);
 #endif
   mState = kStarted;
 
   return NS_OK;
 }
 
 nsresult
 MediaEngineDefaultAudioSource::Stop(SourceMediaStream *aSource, TrackID aID)