Mercurial > hg > webaudioevaluationtool
changeset 1852:e97471529c64
Fix Loudness.js bug for older Safari (<9.0.2)
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Tue, 23 Feb 2016 11:41:25 +0000 |
parents | 1f9436adc83f |
children | 8fad6ccb12d2 |
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(); }