wrap direct ffmpeg reference
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user