videosphere
    Preparing search index...
    • Drops oldest queued clips that are hopelessly behind while newer audio exists.

      Never empties the queue: at least the newest clip is kept so the listener still hears something current rather than silence.

      Parameters

      • queue: readonly TtsQueueItem[]

        Ordered clips (oldest first).

      • nowMs: number

        Current wall-clock time.

      Returns TtsQueueItem[]

      Trimmed queue (may be the same array contents when nothing is dropped).