onDiscontinuity

open fun onDiscontinuity()

Whatever the tap holds is stale: the player sought, changed the audio track or opened a new audio path, and the next onAudio continues from somewhere else. It may arrive on another thread than onAudio.


open fun onDiscontinuity(generation: Generation)

Retires all deliveries before generation. May race with a callback still completing from a retired session; that callback retains its old generation. The default notifies legacy taps.