diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-02-27 22:26:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-02-27 22:26:57 +0100 |
| commit | bcc4e2f7dc4cd5658e199ddacb7202b00ec72cf1 (patch) | |
| tree | 70a6d59908b1d1391e2f9ecd2c8bd17890b3bbc5 /src/lib/util.h | |
| parent | a2ceaa313a2b8ba28516c935f7f8b82d69957b77 (diff) | |
Add and use dB/linear conversion functions.
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 5 |
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 |
