stop microphone output when the user presses the stop button

pull/89/head
jmoenig 2019-04-05 12:12:40 +02:00
rodzic 6c024bab40
commit 4e0a407ecb
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -64,6 +64,7 @@
* Objects: tweaked oscillator fade-out
* Blocks, Threads: added "sample rate" selector to microphone drow-down
* updated German translation for "sample rate"
* Objects: stop microphone output when the user presses the stop button
### 2019-04-04
* Objects, Threads: new "play frequency" commands in the Sounds category

Wyświetl plik

@ -8120,6 +8120,9 @@ StageMorph.prototype.stopAllActiveSounds = function () {
audio.pause();
});
this.activeSounds = [];
if (this.microphone.modifier && this.microphone.isReady) {
this.microphone.stop();
}
};
StageMorph.prototype.pauseAllActiveSounds = function () {