|
|
|
|
@ -557,6 +557,16 @@ int call_audio_get_clock(uint64_t call_id, int64_t now_us, struct call_clock_sna
|
|
|
|
|
return present ? 0 : -1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int call_audio_get_diagnostics(uint64_t call_id, struct call_jitter_diagnostics* out) { |
|
|
|
|
if (!out) { DEBUG_ERROR(DEBUG_CATEGORY_CALL, "call diagnostics: missing output"); return -1; } |
|
|
|
|
memset(out, 0, sizeof(*out)); |
|
|
|
|
pthread_mutex_lock(&g_mtx); |
|
|
|
|
int present = g_active && call_id == g_call_id && g_vj; |
|
|
|
|
if (present) call_jitter_get_diagnostics(g_vj, out, 0); |
|
|
|
|
pthread_mutex_unlock(&g_mtx); |
|
|
|
|
return present ? 0 : -1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* ── uasync-поток: метрики ── */ |
|
|
|
|
|
|
|
|
|
int call_audio_get_stats(uint64_t call_id, int* buffer_ms, int* tempo_x100, |
|
|
|
|
|