If mic is not enabled, return -1

To match Scratch 2.0 behavior
This commit is contained in:
Eric Rosenbaum 2017-03-27 13:23:01 -04:00
parent 7d6adf5864
commit b14852ab3c

View file

@ -162,7 +162,7 @@ AudioEngine.prototype.getLoudness = function () {
if (this.mic && this.mic.state == 'started') {
return this.micMeter.value * 100;
} else {
return 0;
return -1;
}
};