"infinite" now optionally plays duration ms, pauses pause_duration ms and
repeats until playback.stop, the same as "interval" with total_duration 0,
which is what people expect "infinite" to mean. Sending neither keeps the
old back-to-back looping; sending only one is rejected, since a duration
without a pause flickers paused/playing and a pause without a duration
never triggers. total_duration is never read for infinite.
api-reference.md now documents the exact timing of every mode: 500 ms
tick, loops never cut short, paused/stopping status transitions, pause
measured from the loop end, total_duration including pauses, and the
~0.5 s engine gap between loops when the run has no end time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>