Mercurial > hg > webaudioevaluationtool
diff js/core.js @ 2433:037cf4e2b2d6
Minor #12 fix for undefined lufs
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Thu, 02 Jun 2016 13:59:43 +0100 |
parents | c859ec64acca |
children | 8931ca5beb03 |
line wrap: on
line diff
--- a/js/core.js Thu Jun 02 13:56:05 2016 +0100 +++ b/js/core.js Thu Jun 02 13:59:43 2016 +0100 @@ -1624,7 +1624,7 @@ if (this.interfaceDOM != null) { this.interfaceDOM.enable(); } - this.onplayGain = decibelToLinear(this.specification.gain)*this.buffer.buffer.playbackGain; + this.onplayGain = decibelToLinear(this.specification.gain)*(this.buffer.buffer.playbackGain||1.0); this.storeDOM.setAttribute('playGain',linearToDecibel(this.onplayGain)); };