wrap direct ffmpeg reference

This commit is contained in:
itsmattkc
2019-07-22 09:26:38 -07:00
parent 1d25fbd9e7
commit 71e6e3143b
6 changed files with 18 additions and 14 deletions
+7 -2
View File
@@ -1,6 +1,11 @@
#include "decibel.h"
decibel::decibel()
{
#include <QtMath>
double amplitude_to_db(double amplitude) {
return (20.0*(qLn(amplitude)/qLn(10.0)));
}
double db_to_amplitude(double db) {
return qPow(M_E, (db*qLn(10.0))/20.0);
}