summaryrefslogtreecommitdiff
path: root/src/lib/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-02-27 22:26:57 +0100
committerCarl Hetherington <cth@carlh.net>2020-02-27 22:26:57 +0100
commitbcc4e2f7dc4cd5658e199ddacb7202b00ec72cf1 (patch)
tree70a6d59908b1d1391e2f9ecd2c8bd17890b3bbc5 /src/lib/util.h
parenta2ceaa313a2b8ba28516c935f7f8b82d69957b77 (diff)
Add and use dB/linear conversion functions.
Diffstat (limited to 'src/lib/util.h')
-rw-r--r--src/lib/util.h5
1 files changed, 4 insertions, 1 deletions
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 <cth@carlh.net>
+ Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -128,4 +128,7 @@ vector_to_list (std::vector<T> v)
return l;
}
+extern double db_to_linear (double db);
+extern double linear_to_db (double linear);
+
#endif