# HG changeset patch # User Nicholas Jillings # Date 1456227685 0 # Node ID 89a0d8b18919cd8611166b9fc8300b2da04ec652 # Parent 845047ed3814c4b96c95aea9058ddc9b25db7a98 Fix Loudness.js bug for older Safari (<9.0.2) diff -r 845047ed3814 -r 89a0d8b18919 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(); }