adding a mechanism to stop (and reset) the transport
This commit is contained in:
@ -16,6 +16,7 @@ class TransportProcessor extends AudioWorkletProcessor {
|
||||
this.started = false;
|
||||
} else if (message.data === "stop") {
|
||||
this.started = false;
|
||||
this.currentTime = 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user