diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-18 22:52:00 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-20 00:31:10 +0200 |
| commit | f876718236e0ec243bd7bc2265d27714a83b4375 (patch) | |
| tree | 1041177c4573a2893e794070ba9d6d90ea885027 | |
| parent | fb3762a5dc6e7f7db829c671260a97ef62e99601 (diff) | |
Same with bitdepth.
| -rw-r--r-- | src/leqm-nrt.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/leqm-nrt.cc b/src/leqm-nrt.cc index c259258..6ce2940 100644 --- a/src/leqm-nrt.cc +++ b/src/leqm-nrt.cc @@ -263,14 +263,13 @@ void * worker_function(void * argfunc); void logleqm(FILE * filehandle, double featuretimesec, Sum * oldsum); void logleqm10(FILE * filehandle, double featuretimesec, double longaverage); -int calculate(std::vector<double> channel_corrections, std::string sound_filename, int leqmlog, int leqm10, int timing, int bitdepth, int numbershortperiods, int buffersizems, int numCPU, int samplingfreq, int npoints, int origpoints, int leqnw); +int calculate(std::vector<double> channel_corrections, std::string sound_filename, int leqmlog, int leqm10, int timing, int numbershortperiods, int buffersizems, int numCPU, int samplingfreq, int npoints, int origpoints, int leqnw); int main(int argc, const char ** argv) { int npoints = 64; // This value is low for precision. Calibration is done with 32768 point. int origpoints = 21; //number of points in the standard CCIR filter int samplingfreq; // this and the next is defined later taking it from sound file - int bitdepth; // double normalizer; int timing = 0; int fileopenstate = 0; @@ -394,10 +393,10 @@ int main(int argc, const char ** argv) } } - return calculate(channel_corrections, sound_filename, leqmlog, leqm10, timing, bitdepth, numbershortperiods, buffersizems, numCPU, samplingfreq, npoints, origpoints, leqnw); + return calculate(channel_corrections, sound_filename, leqmlog, leqm10, timing, numbershortperiods, buffersizems, numCPU, samplingfreq, npoints, origpoints, leqnw); } -int calculate(std::vector<double> channel_corrections, std::string sound_filename, int leqmlog, int leqm10, int timing, int bitdepth, int numbershortperiods, int buffersizems, int numCPU, int samplingfreq, int npoints, int origpoints, int leqnw) +int calculate(std::vector<double> channel_corrections, std::string sound_filename, int leqmlog, int leqm10, int timing, int numbershortperiods, int buffersizems, int numCPU, int samplingfreq, int npoints, int origpoints, int leqnw) { FILE *leqm10logfile = nullptr; FILE *leqmlogfile = nullptr; @@ -501,6 +500,7 @@ int calculate(std::vector<double> channel_corrections, std::string sound_filenam // And what to do for floating point sample coding? + int bitdepth = 0; switch(sf_info.format & SF_FORMAT_SUBMASK) { // all signed bitdepth case 0x0001: |
