From bcc4e2f7dc4cd5658e199ddacb7202b00ec72cf1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 27 Feb 2020 22:26:57 +0100 Subject: Add and use dB/linear conversion functions. --- src/lib/util.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/util.h') diff --git a/src/lib/util.h b/src/lib/util.h index c8dcb29d6..12c79ea5a 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2019 Carl Hetherington + Copyright (C) 2012-2020 Carl Hetherington This file is part of DCP-o-matic. @@ -128,4 +128,7 @@ vector_to_list (std::vector v) return l; } +extern double db_to_linear (double db); +extern double linear_to_db (double linear); + #endif -- cgit v1.2.3