mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
only accept undefined for clip
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user