tweaked microphone to keep running while a modifier reporter exists

pull/89/head
jmoenig 2019-03-28 17:48:39 +01:00
rodzic d07b35a2d8
commit c39e9eb115
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -9072,7 +9072,10 @@ Microphone.prototype.createProcessor = function () {
};
Microphone.prototype.stepAudio = function (event) {
if (this.isAutoStop && ((Date.now() - this.lastTime) > 5000)) {
if (this.isAutoStop &&
((Date.now() - this.lastTime) > 5000) &&
!this.modifier
) {
this.stop();
return;
}