# HG changeset patch # User Nicholas Jillings # Date 1456227685 0 # Node ID d3c573f936a918702f24d61e14448876129afd25 # Parent 5cd12e23b195c988dba89d6fa8600fc64a77e5f1 Fix Loudness.js bug for older Safari (<9.0.2) diff -r 5cd12e23b195 -r d3c573f936a9 loudness.js --- a/loudness.js Tue Feb 23 11:17:44 2016 +0000 +++ b/loudness.js Tue Feb 23 11:41:25 2016 +0000 @@ -53,7 +53,6 @@ processSource.connect(KFilter); KFilter.connect(HPFilter); HPFilter.connect(offlineContext.destination); - processSource.start(); offlineContext.oncomplete = function(renderedBuffer) { // Have the renderedBuffer information, now continue processing if (typeof renderedBuffer.renderedBuffer == 'object') { @@ -77,6 +76,7 @@ } buffer.ready(); }; + processSource.start(0); offlineContext.startRendering(); }