pass cps to hap trigger

This commit is contained in:
Felix Roos 2023-02-28 23:54:56 +01:00
parent f5c0cc2e2d
commit 86d2652258

View File

@ -39,7 +39,7 @@ export class Cyclist {
if (hap.part.begin.equals(hap.whole.begin)) {
const deadline = (hap.whole.begin - begin) / this.cps + tickdeadline + latency;
const duration = hap.duration / this.cps;
onTrigger?.(hap, deadline, duration);
onTrigger?.(hap, deadline, duration, this.cps);
}
});
} catch (e) {