fix: cyclist desync
This commit is contained in:
parent
bea25a28cb
commit
df23ea6cdf
3 changed files with 9 additions and 5 deletions
|
|
@ -274,7 +274,7 @@ export const superdough = async (value, t, hapDuration) => {
|
|||
// calculate absolute time
|
||||
t = typeof t === 'string' && t.startsWith('=') ? Number(t.slice(1)) : ac.currentTime + t;
|
||||
if (t < ac.currentTime) {
|
||||
console.log(
|
||||
console.warn(
|
||||
`[superdough]: cannot schedule sounds in the past (target: ${t.toFixed(2)}, now: ${ac.currentTime.toFixed(2)})`,
|
||||
);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue