Bug 1441509 - Start performing the analysis in test_seamless_looping.html after the second loop, to let things stabilize. r?karlt
MozReview-Commit-ID: 5FK30GNk4s5
--- a/dom/media/test/test_seamless_looping.html
+++ b/dom/media/test/test_seamless_looping.html
@@ -118,18 +118,18 @@
}
}
function analysisCallback() {
if (!again) {
return;
}
analyser.getFloatFrequencyData(frequencyBuf);
- // There is an unrelated click at start, skip it.
- if (loopCount != 0) {
+ // Let things stabilize at the beginning. See bug bug 1441509.
+ if (loopCount > 1) {
doAnalysis(frequencyBuf, ac.sampleRate);
}
if (DEBUG) {
c.clearRect(0, 0, w, h);
analyser.getFloatTimeDomainData(timeDomainBuf);
for (var i = 0; i < frequencyBuf.length; i++) {
c.fillRect(i, h, 1, -frequencyBuf[i] + analyser.minDecibels);