Mercurial > hg > webaudioevaluationtool
changeset 552:d3c573f936a9 Dev_main
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 | 5cd12e23b195 |
children | bdcc5fc7a6bf |
files | loudness.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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(); }