Bug 974537: Make output+input delay for AEC platform-dependent rs=jmspeex,mreavy,drno
authorRandell Jesup <rjesup@jesup.org>
Fri, 28 Feb 2014 16:07:07 -0500
changeset 171678 4e626667330249d7889ce63f43992df72aa6677c
parent 171677 f34906f9fe7a2ac5c997021611ccd240096ba964
child 171679 06ab7ca6ee788d9e416c478c070d26fcdcebb6ae
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersjmspeex, mreavy, drno
bugs974537
milestone30.0a1
Bug 974537: Make output+input delay for AEC platform-dependent rs=jmspeex,mreavy,drno
modules/libpref/src/init/all.js
--- a/modules/libpref/src/init/all.js
+++ b/modules/libpref/src/init/all.js
@@ -258,16 +258,29 @@ pref("media.peerconnection.identity.time
 // setting (for Xxx = Ec, Agc, or Ns).  Defaults are all set to kXxxDefault here.
 pref("media.peerconnection.turn.disable", false);
 pref("media.peerconnection.aec_enabled", true);
 pref("media.peerconnection.aec", 1);
 pref("media.peerconnection.agc_enabled", false);
 pref("media.peerconnection.agc", 1);
 pref("media.peerconnection.noise_enabled", false);
 pref("media.peerconnection.noise", 1);
+// Adjustments for OS mediastream+output+OS+input delay (lower bound)
+#if defined(XP_MACOSX)
+pref("media.peerconnection.capture_delay", 50);
+#elif defined(XP_WIN)
+pref("media.peerconnection.capture_delay", 50);
+#elif defined(ANDROID)
+pref("media.peerconnection.capture_delay", 100);
+#elif defined(XP_LINUX)
+pref("media.peerconnection.capture_delay", 70);
+#else
+// *BSD, others - merely a guess for now
+pref("media.peerconnection.capture_delay", 50);
+#endif
 #else
 #ifdef ANDROID
 pref("media.navigator.enabled", true);
 #endif
 #endif
 
 pref("media.tabstreaming.width", 320);
 pref("media.tabstreaming.height", 240);