# HG changeset patch # User Nicholas Jillings # Date 1456227685 0 # Node ID e97471529c641554f0459735608e40bf9a7520bc # Parent 1f9436adc83f3fd80bebc602226b4b0aaf2d3448 Fix Loudness.js bug for older Safari (<9.0.2) diff -r 1f9436adc83f -r e97471529c64 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(); }