aboutsummaryrefslogtreecommitdiffstats
path: root/src/ManagementServer.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-02-10 12:04:23 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-02-10 12:04:23 +0100
commit97458a2e08d5bf4904553eb76467fb047e4719f4 (patch)
tree41376d5827a576e7917b98a5ceb4acc9779cae2e /src/ManagementServer.h
parent9719087ebcb4bd422c592f994f2e1691191e91d6 (diff)
downloaddabmux-97458a2e08d5bf4904553eb76467fb047e4719f4.tar.gz
dabmux-97458a2e08d5bf4904553eb76467fb047e4719f4.tar.bz2
dabmux-97458a2e08d5bf4904553eb76467fb047e4719f4.zip
Add timestamp offset to management server for EDI input
Diffstat (limited to 'src/ManagementServer.h')
-rw-r--r--src/ManagementServer.h4
1 files changed, 4 insertions, 0 deletions
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.