adding stuff and cleaning stuff
This commit is contained in:
@ -5,24 +5,14 @@ class TransportProcessor extends AudioWorkletProcessor {
|
||||
this.port.addEventListener("message", this.handleMessage);
|
||||
this.port.start();
|
||||
this.stated = false;
|
||||
/*
|
||||
this.interval = 0.0001;
|
||||
this.origin = currentTime;
|
||||
this.next = this.origin + this.interval;
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
handleMessage = (message) => {
|
||||
if (message.data === "start") {
|
||||
this.started = true;
|
||||
// this.origin = currentTime;
|
||||
// this.next = this.origin + this.interval;
|
||||
} else if (message.data === "pause") {
|
||||
// this.next = Infinity;
|
||||
} else if (message.data === "pause") {
|
||||
this.started = false;
|
||||
} else if (message.data === "stop") {
|
||||
// this.origin = currentTime;
|
||||
// this.next = Infinity;
|
||||
this.started = false;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user