[client/idd] network: discard stale audio after stalls

Keep PCM and its clock sample in cancellable datagrams so recovery
cannot replay audio buffered before a Wi-Fi stall.

Drop blocked real-time packets with an explicit discontinuity and make
a newer reconnect supersede stale audio authorities.
This commit is contained in:
Geoffrey McRae
2026-10-08 22:51:47 +11:00
parent b1dda92f09
commit 0b0f227c08
11 changed files with 341 additions and 700 deletions

View File

@@ -845,7 +845,7 @@ void spiceAudio_playbackData(SpiceAudio * audio,
if (target.events->playbackData &&
playbackEventCurrent(audio, &target, generation, true))
target.events->playbackData(target.opaque, generation,
data, frames, &clock);
data, frames, &clock, false);
endEvent(audio);
}

View File

@@ -592,7 +592,7 @@ static void usbPlaybackData(
{
const LG_AudioClock clock = makePlaybackClock(state, position);
events->playbackData(
target, generation, data, frames, &clock);
target, generation, data, frames, &clock, false);
}
}
endCallback(&frame, &l_playbackFrames,