mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
pass duration to source callback
This commit is contained in:
@@ -167,7 +167,7 @@ export const webaudioOutput = async (hap, deadline, hapDuration, cps) => {
|
||||
// get source AudioNode
|
||||
let sourceNode;
|
||||
if (source) {
|
||||
sourceNode = source(t, hap.value);
|
||||
sourceNode = source(t, hap.value, hapDuration);
|
||||
} else if (getSound(s)) {
|
||||
const { onTrigger } = getSound(s);
|
||||
const soundHandle = await onTrigger(t, hap.value, onended);
|
||||
|
||||
Reference in New Issue
Block a user