Improve call buffering, CM handle lifecycle and radio PTT controls

This commit is contained in:
evgeny committed 2026-09-30 17:31:53 +03:00
1 parent 752c1f140c
commit 2d21c53b4b
55 files changed
+2060 -496

No files matched your search

+6
View File
@@ -456,6 +456,12 @@ void MainWindow::setupBridgeCallbacks() {
Q_UNUSED(text); Q_UNUSED(len);
if (s_mainWindow) s_mainWindow->onCallError(call_id, err);
});
gui_bridge_set_call_stats_cb([](uint64_t id, int rtt, int buffer, int tempo, int dropped,
int underruns, int minimum, int maximum, int reserve) {
if (!s_mainWindow) return;
auto* w = s_mainWindow->m_activeCalls.value(id, nullptr);
if (w) w->setAudioStats(rtt, buffer, tempo, dropped, underruns, minimum, maximum, reserve);
});
gui_bridge_set_call_path_cb([](uint64_t call_id, const char* text, int len) {
if (s_mainWindow) s_mainWindow->onCallPath(call_id, QString::fromUtf8(text, len));
});