Streaming Multimodal Interaction › Interruption and the Stale Output Problem
Language AI HandbookAll chapters A player can track the only generation it is authorized to play. On invalidation it drops old entries from the mutable queue and rejects old-generation arrivals that still appear after cancellation. Applying the check both on receipt and before playback handles races across those boundaries. The allow_chunk predicate above requires an active generation and a matching chunk identifier. It does not model queue purge, concurrency, acks or audio-device commitments. A device may still play samples already committed outside the mutable queue, so trace what actually reaches the listener.
Generation IDs can protect playout when messages arrive out of order. Starting generation 8 makes it the active one at the player. A delayed generation-7 chunk should then be treated according to an explicit invalidation rule at the queue. Log the old chunk whether it was discarded or submitted, and test generation changes while both streams have queued data. A server acknowledgment tells the experiment that the cancellation was received. It cannot establish when the old chunk stopped affecting the listener.
The line between discarded and stale output is a measurement boundary. A generated sample can be decoded, queued, submitted to a device, or played. For a lab test, use a renderer event with a documented buffer offset or a recorded playback signal on a synchronized clock. Log both compressed chunk duration and underlying sample count where the decoder output rate differs from the transport clock. If the goal is to measure old-generation audible duration, decide how to handle silence or gaps. If the goal is time to stop, the last old-generation playback endpoint has a useful interpretation even when output is intermittent.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!