mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 05:38:34 +00:00
pass duration to source callback
This commit is contained in:
parent
e63a5d10c8
commit
aad721890a
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user