pass duration to source callback
This commit is contained in:
parent
e63a5d10c8
commit
aad721890a
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue