Separate receiving text/images into own panel

This commit is contained in:
Lewis Moten
2024-05-13 03:53:42 -04:00
parent f548d9572b
commit 8cb5248fdf
5 changed files with 138 additions and 60 deletions

View File

@@ -117,15 +117,12 @@ export function stopAt(streamEndSeconds) {
}
export function stop() {
const oscillators = getOscillators();
if(this.audioContext) {
const time = now();
oscillators.forEach(
oscillator => {
oscillator?.stop(time);
oscillator?.disconnect();
}
)
}
oscillators.forEach(
oscillator => {
oscillator?.stop();
oscillator?.disconnect();
}
)
oscillators.length = 0;
futureEventIds.forEach(window.clearTimeout);
futureEventIds.length = 0;