mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -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') {
|
||||
return this.micMeter.value * 100;
|
||||
} else {
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue