Offset on sounds api

This commit is contained in:
2026-11-22 08:35:54 -03:00
parent d18fe19027
commit 5d374091cd
5 changed files with 58 additions and 4 deletions
+4
View File
@@ -146,6 +146,10 @@ export interface ClientPlayOptions extends PlayOptions {
// plays again from the start until it's stopped. one out of the player's range waits silently, and comes back in
// as far into the file as it would have got
loop?: boolean;
// plays as if it had started this many seconds ago, for a sound that goes with something that's been going on a
// while, like a jester that was already winding when the player came. a sound that would have finished by now
// doesn't play. 0 when not given
offset?: number;
}
// a sound ctx.sounds.play started