Add extra receive buffering and decode Opus FEC on loss
A new Extra buffering setting (Network page) holds more playback delay than the jitter buffer measures it needs, so late packets still make it in time on a bad connection. A lost frame is now rebuilt from the FEC copy in the next packet when that one is already held, and the Connection Info shows how many were recovered. Held packets' arrival marks now move with the timeline when the delay changes; libspeex leaves them, which made a multi-frame jump count twice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -964,13 +964,14 @@ public final class MainFrame extends JFrame implements ServerTabPane.Listener {
|
||||
dlg.setVisible(true);
|
||||
}
|
||||
|
||||
/** Master volume / output device are global, so push them to every open connection. */
|
||||
/** Master volume, output device and receive buffer are global, so push them to every open connection. */
|
||||
private void applyOutputSettingsToAllTabs() {
|
||||
soundPlayer.setOutputDevice(settings.outputDevice);
|
||||
for (ServerTab tab : tabs) {
|
||||
if (tab.connection().getPlayback() == null) continue;
|
||||
tab.connection().getPlayback().setMasterVolume(settings.effectiveOutputVolume());
|
||||
tab.connection().getPlayback().setOutputDevice(settings.outputDevice);
|
||||
tab.connection().getPlayback().setReceiveBuffer(settings.receiveBuffer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user