mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-14 07:47:19 +00:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user