Add and use dB/linear conversion functions.
[dcpomatic.git] / src / lib / util.h
index c8dcb29d6913c49ccef30bf92ee9393514824b91..12c79ea5a374cabe566d751e9f5c250db71b22ba 100644 (file)
@@ -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.
 
 
     This file is part of DCP-o-matic.
 
@@ -128,4 +128,7 @@ vector_to_list (std::vector<T> v)
        return l;
 }
 
        return l;
 }
 
+extern double db_to_linear (double db);
+extern double linear_to_db (double linear);
+
 #endif
 #endif