Mercurial > hg > webaudioevaluationtool
diff loudness.js @ 1211:89a0d8b18919
Fix Loudness.js bug for older Safari (<9.0.2)
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 23 Feb 2016 11:41:25 +0000 |
parents | eef2d4ea18fb |
children | 124e6c702845 |
line wrap: on
line diff
--- 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(); }