From d06ae4a60e2856b30ee32321e9d99b231c83af3e Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 10 Feb 2022 16:38:50 +0100 Subject: [PATCH] sourcestats: add function to get minsamples --- sourcestats.c | 8 ++++++++ sourcestats.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/sourcestats.c b/sourcestats.c index 986956f..ef64bf8 100644 --- a/sourcestats.c +++ b/sourcestats.c @@ -986,6 +986,14 @@ SST_Samples(SST_Stats inst) /* ================================================== */ +int +SST_GetMinSamples(SST_Stats inst) +{ + return inst->min_samples; +} + +/* ================================================== */ + void SST_DoSourcestatsReport(SST_Stats inst, RPT_SourcestatsReport *report, struct timespec *now) { diff --git a/sourcestats.h b/sourcestats.h index 7a551e6..e10f425 100644 --- a/sourcestats.h +++ b/sourcestats.h @@ -133,6 +133,8 @@ extern void SST_DoSourcestatsReport(SST_Stats inst, RPT_SourcestatsReport *repor extern int SST_Samples(SST_Stats inst); +extern int SST_GetMinSamples(SST_Stats inst); + extern double SST_GetJitterAsymmetry(SST_Stats inst); #endif /* GOT_SOURCESTATS_H */