Skip to content

API Type MusicSeekResult

github-actions[bot] edited this page Nov 29, 2026 · 2 revisions

Type Alias: MusicSeekResult

type MusicSeekResult = 
  | {
  ok: true;
  time: number;
}
  | {
  ok: false;
  permanent: boolean;
  reason: "invalid" | "notPlaying" | "neverFits" | "poolFull";
};

Defined in: src/engine/core/musicEvents.ts:24

The result of handle.music.seek: the planned heard landing time (seconds), or a refusal. A permanent refusal (invalid position or segment, not playing, never fits the pool) is final; a temporary one (no free rings) is retried each display frame until the target changes.

Clone this wiki locally