CROSSFADE_BOUNDARY_LEAD_MS
const CROSSFADE_BOUNDARY_LEAD_MS: 250 = 250;How early (in milliseconds) the boundary timer is armed.
Queue#currentTime follows the audio resource’s media clock, while timers
run on the wall clock. Arming the timer slightly early guarantees that a
normal event-loop delay or a rounded song duration cannot make it fire
after the boundary (which would replay audio). The swap then waits for the
media clock to actually reach the boundary.