adding a mechanism to stop (and reset) the transport

This commit is contained in:
2023-08-03 13:18:17 +02:00
parent 068c324e90
commit 740604f46f
2 changed files with 22 additions and 5 deletions

View File

@ -16,6 +16,7 @@ class TransportProcessor extends AudioWorkletProcessor {
this.started = false;
} else if (message.data === "stop") {
this.started = false;
this.currentTime = 0;
}
};