From 4870d0c148eb49ffeb5482ae55d9cc4c9cc89786 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 3 Jul 2017 17:20:35 +0200 Subject: Measure audio levels, add ensemble database WIP --- src/utils.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/utils.hpp') diff --git a/src/utils.hpp b/src/utils.hpp index 890bd50..3ff9f13 100644 --- a/src/utils.hpp +++ b/src/utils.hpp @@ -82,3 +82,6 @@ int sprintfMJD(char *dst, int mjd); // as the RDS "Programme Item Number (PIN)" feature (EN 62106). std::string pnum_to_str(uint16_t Programme_Number); +// Convert and absolute 16-bit int value to dB. If value is zero, returns +// -90dB +int absolute_to_dB(int16_t value); -- cgit v1.2.3