mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-09 22:32:33 -05:00
If mic is not enabled, return -1
To match Scratch 2.0 behavior
This commit is contained in:
parent
7d6adf5864
commit
b14852ab3c
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ AudioEngine.prototype.getLoudness = function () {
|
||||||
if (this.mic && this.mic.state == 'started') {
|
if (this.mic && this.mic.state == 'started') {
|
||||||
return this.micMeter.value * 100;
|
return this.micMeter.value * 100;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue