tweaked microphone synching

pull/89/head
jmoenig 2019-03-06 17:26:05 +01:00
rodzic db0301c8cc
commit b5c2a1db0e
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -8927,8 +8927,6 @@ Microphone.prototype.start = function () {
}
).then(function (stream) {
myself.setupNodes(stream);
myself.isReady = true;
myself.isStarted = false;
}).catch(nop);
};
@ -8990,6 +8988,9 @@ Microphone.prototype.stepAudio = function (event) {
}
rms = Math.sqrt(sum / bufLength);
this.volume = Math.max(rms, this.volume * this.processor.averaging);
this.isReady = true;
this.isStarted = false;
};
Microphone.prototype.stop = function () {