mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 12:38:35 +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
|
// get source AudioNode
|
||||||
let sourceNode;
|
let sourceNode;
|
||||||
if (source) {
|
if (source) {
|
||||||
sourceNode = source(t, hap.value);
|
sourceNode = source(t, hap.value, hapDuration);
|
||||||
} else if (getSound(s)) {
|
} else if (getSound(s)) {
|
||||||
const { onTrigger } = getSound(s);
|
const { onTrigger } = getSound(s);
|
||||||
const soundHandle = await onTrigger(t, hap.value, onended);
|
const soundHandle = await onTrigger(t, hap.value, onended);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user