From 97458a2e08d5bf4904553eb76467fb047e4719f4 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 10 Feb 2021 12:04:23 +0100 Subject: Add timestamp offset to management server for EDI input --- src/ManagementServer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ManagementServer.h') diff --git a/src/ManagementServer.h b/src/ManagementServer.h index e88d233..12f5ad6 100644 --- a/src/ManagementServer.h +++ b/src/ManagementServer.h @@ -97,6 +97,7 @@ class InputStat /* This function is called for every frame read by * the multiplexer */ void notifyBuffer(long bufsize); + void notifyTimestampOffset(double offset); void notifyPeakLevels(int peak_left, int peak_right); void notifyUnderrun(void); void notifyOverrun(void); @@ -123,6 +124,9 @@ class InputStat uint32_t m_num_underruns = 0; uint32_t m_num_overruns = 0; + // last measured timestamp offset + double m_last_tist_offset = 0; + // Peak audio levels (linear 16-bit PCM) for the two channels. // Keep a FIFO of values from the last minutes, apply // a short window to also see short-term fluctuations. -- cgit v1.2.3