# HG changeset patch # User Nicholas Jillings # Date 1464872383 -3600 # Node ID 037cf4e2b2d6aaf519336cb5d62261948f3673dd # Parent aca96a5183be368ea19ac9f44897ce50b6570a27 Minor #12 fix for undefined lufs diff -r aca96a5183be -r 037cf4e2b2d6 js/core.js --- 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)); };