Bug 1477200 - Temporarily bump audio input and output latency on OSX as a stop-gap measure, on macbook pros. r?pehrsons draft
authorPaul Adenot <paul@paul.cx>
Fri, 20 Jul 2018 11:27:27 +0200
changeset 820769 ba771407afc75442238d1e139c84224dcf77842d
parent 820456 f70442a008ca7048e0139dcf35456014b602f104
push id116934
push userpaul@paul.cx
push dateFri, 20 Jul 2018 12:30:21 +0000
reviewerspehrsons
bugs1477200
milestone63.0a1
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()
 {