Bug 1477200 - Temporarily bump audio input and output latency on OSX as a stop-gap measure, on macbook pros. r=pehrsons
authorPaul Adenot <paul@paul.cx>
Fri, 20 Jul 2018 11:27:27 +0200
changeset 427464 3f95add38e74fb18e7b12268ba79c2b934349be1
parent 427463 c1a1d1e1cfbf784f26b3ca0e7ca1a4e6e8420459
child 427465 b4085dba45c5daeab32ba237f5342ffd2dc78954
push id34306
push usercsabou@mozilla.com
push dateFri, 20 Jul 2018 21:41:18 +0000
treeherdermozilla-central@d6a5e8aea651 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspehrsons
bugs1477200
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1477200 - Temporarily bump audio input and output latency on OSX as a stop-gap measure, on macbook pros. r=pehrsons MozReview-Commit-ID: 3kD3ZRT2fDf
dom/media/GraphDriver.cpp
--- a/dom/media/GraphDriver.cpp
+++ b/dom/media/GraphDriver.cpp
@@ -592,17 +592,19 @@ bool IsMacbookOrMacbookAir()
     char* substring = strstr(model.get(), "MacBook");
     if (substring) {
       const size_t offset = strlen("MacBook");
       if (!strncmp(model.get() + offset, "Air", 3) ||
           isdigit(model[offset + 1])) {
         return true;
       }
     }
-    return false;
+    // Bug 1477200, we're temporarily capping the latency to 512 here to help
+    // with audio quality.
+    return true;
   }
 #endif
   return false;
 }
 
 bool
 AudioCallbackDriver::Init()
 {