mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
only accept undefined for clip
This commit is contained in:
parent
8c9e06c329
commit
b4cbec173b
@ -232,7 +232,7 @@ export async function onTriggerSample(t, value, onended, bank) {
|
||||
out.disconnect();
|
||||
onended();
|
||||
};
|
||||
const stop = (endTime, playWholeBuffer = [undefined, false, null].includes(clip)) => {
|
||||
const stop = (endTime, playWholeBuffer = clip === undefined) => {
|
||||
let releaseTime = endTime;
|
||||
if (playWholeBuffer) {
|
||||
releaseTime = t + (end - begin) * bufferDuration;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user