summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-04-27 20:30:31 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-04-27 20:30:31 +0200
commitea12293e0a6764fb4655420de8e906bd42d90efd (patch)
tree70629399c3cf07a520d40a075705c37e3d55a1d0 /include
parent036030c23b1fac6bda68bdd9406ffca5c7539759 (diff)
aulevel: calculate audio levels in dBov
Diffstat (limited to 'include')
-rw-r--r--include/baresip.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/baresip.h b/include/baresip.h
index f00b5c9..5087296 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -65,6 +65,18 @@ const char *account_stun_host(const struct account *acc);
/*
+ * Audio-level
+ */
+
+
+#define AULEVEL_MIN (-96.0)
+#define AULEVEL_MAX (0.0)
+
+
+double aulevel_calc_dbov(const int16_t *sampv, size_t sampc);
+
+
+/*
* Call
*/