diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-04-27 20:30:31 +0200 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-04-27 20:30:31 +0200 |
commit | ea12293e0a6764fb4655420de8e906bd42d90efd (patch) | |
tree | 70629399c3cf07a520d40a075705c37e3d55a1d0 /include | |
parent | 036030c23b1fac6bda68bdd9406ffca5c7539759 (diff) |
aulevel: calculate audio levels in dBov
Diffstat (limited to 'include')
-rw-r--r-- | include/baresip.h | 12 |
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 */ |