leqm-nrt.git
8 months agoBuild with -O2 for what seems like a ~4x speedup. carl
Carl Hetherington [Sun, 1 Oct 2023 21:23:22 +0000 (23:23 +0200)]
Build with -O2 for what seems like a ~4x speedup.

16 months agoFix crash when _nsamples is not a multiple of _nch (DoM #2432).
Carl Hetherington [Thu, 26 Jan 2023 21:02:56 +0000 (22:02 +0100)]
Fix crash when _nsamples is not a multiple of _nch (DoM #2432).

23 months agoRemove another unused variable.
Carl Hetherington [Mon, 13 Jun 2022 23:19:02 +0000 (01:19 +0200)]
Remove another unused variable.

2 years agoRemove unused variable.
cah [Wed, 12 Jan 2022 19:55:54 +0000 (20:55 +0100)]
Remove unused variable.

3 years agoMake sure workers are finished before the variables they use are torn down.
Carl Hetherington [Thu, 20 May 2021 14:47:53 +0000 (16:47 +0200)]
Make sure workers are finished before the variables they use are torn down.

Might help with DoM #2006.

3 years agoAdd some more things to .gitignore.
Carl Hetherington [Thu, 20 May 2021 14:47:25 +0000 (16:47 +0200)]
Add some more things to .gitignore.

4 years agoAllow static or shared builds.
Carl Hetherington [Tue, 21 Apr 2020 19:11:38 +0000 (21:11 +0200)]
Allow static or shared builds.

4 years agoHave to explicitly install static libraries.
Carl Hetherington [Tue, 21 Apr 2020 18:37:39 +0000 (20:37 +0200)]
Have to explicitly install static libraries.

4 years agoOnly check for libsndfile if it's being used.
Carl Hetherington [Tue, 21 Apr 2020 18:19:04 +0000 (20:19 +0200)]
Only check for libsndfile if it's being used.

4 years agoAlways build statically for the sake of AppImage.
Carl Hetherington [Mon, 20 Apr 2020 21:21:31 +0000 (23:21 +0200)]
Always build statically for the sake of AppImage.

4 years agoAdd M_PI for Windows.
Carl Hetherington [Sun, 19 Apr 2020 22:58:37 +0000 (00:58 +0200)]
Add M_PI for Windows.

4 years agoForce C++11.
Carl Hetherington [Sun, 19 Apr 2020 22:34:22 +0000 (00:34 +0200)]
Force C++11.

4 years agoAdd basic cscript. v0.0.2
Carl Hetherington [Sun, 19 Apr 2020 22:13:22 +0000 (00:13 +0200)]
Add basic cscript.

4 years agoUpdate test runner.
Carl Hetherington [Sun, 19 Apr 2020 21:13:11 +0000 (23:13 +0200)]
Update test runner.

4 years agoAdd GPL boilerplate; allow building without libsndfile.
Carl Hetherington [Sun, 19 Apr 2020 20:59:05 +0000 (22:59 +0200)]
Add GPL boilerplate; allow building without libsndfile.

4 years agoRename .pc file.
Carl Hetherington [Sun, 19 Apr 2020 20:41:59 +0000 (22:41 +0200)]
Rename .pc file.

4 years agoAdd #pragma once to header.
Carl Hetherington [Sun, 19 Apr 2020 20:22:45 +0000 (22:22 +0200)]
Add #pragma once to header.

4 years agoRename everything to libleqm_nrt
Carl Hetherington [Sun, 19 Apr 2020 20:13:41 +0000 (22:13 +0200)]
Rename everything to libleqm_nrt

4 years agoAdd a namespace.
Carl Hetherington [Sun, 19 Apr 2020 20:04:51 +0000 (22:04 +0200)]
Add a namespace.

4 years agoOffer a class for calculating in blocks, rather than a method.
Carl Hetherington [Sun, 19 Apr 2020 20:01:51 +0000 (22:01 +0200)]
Offer a class for calculating in blocks, rather than a method.

4 years agoFormatting tweaks.
Carl Hetherington [Sun, 19 Apr 2020 19:37:23 +0000 (21:37 +0200)]
Formatting tweaks.

4 years agoMove some constants.
Carl Hetherington [Sun, 19 Apr 2020 19:35:38 +0000 (21:35 +0200)]
Move some constants.

4 years agoMove some functions about and make them static.
Carl Hetherington [Sun, 19 Apr 2020 19:32:40 +0000 (21:32 +0200)]
Move some functions about and make them static.

4 years agoA few more small cleanups.
Carl Hetherington [Sun, 19 Apr 2020 19:30:06 +0000 (21:30 +0200)]
A few more small cleanups.

4 years agoMore general cleanups.
Carl Hetherington [Sun, 19 Apr 2020 19:27:14 +0000 (21:27 +0200)]
More general cleanups.

4 years agoMove some things about.
Carl Hetherington [Sun, 19 Apr 2020 19:17:22 +0000 (21:17 +0200)]
Move some things about.

4 years agoSeparate IR calculation out and tidy inverse_fft
Carl Hetherington [Sun, 19 Apr 2020 19:16:38 +0000 (21:16 +0200)]
Separate IR calculation out and tidy inverse_fft

4 years agoUnnecessary return value.
Carl Hetherington [Sun, 19 Apr 2020 19:09:21 +0000 (21:09 +0200)]
Unnecessary return value.

4 years agoInline some method calls.
Carl Hetherington [Sun, 19 Apr 2020 19:08:54 +0000 (21:08 +0200)]
Inline some method calls.

4 years agoTidy rectify().
Carl Hetherington [Sun, 19 Apr 2020 19:08:06 +0000 (21:08 +0200)]
Tidy rectify().

4 years agoTidy convolv_buff
Carl Hetherington [Sun, 19 Apr 2020 18:58:44 +0000 (20:58 +0200)]
Tidy convolv_buff

4 years agoMake a couple of methods private.
Carl Hetherington [Sun, 19 Apr 2020 18:55:39 +0000 (20:55 +0200)]
Make a couple of methods private.

4 years agoTidy equalinterval2 a little.
Carl Hetherington [Sun, 19 Apr 2020 18:54:33 +0000 (20:54 +0200)]
Tidy equalinterval2 a little.

4 years agoRemove unused variable.
Carl Hetherington [Sun, 19 Apr 2020 18:51:52 +0000 (20:51 +0200)]
Remove unused variable.

4 years agoRemove some debug output.
Carl Hetherington [Sun, 19 Apr 2020 18:50:31 +0000 (20:50 +0200)]
Remove some debug output.

4 years agoTidy log/lin conversion functions.
Carl Hetherington [Sun, 19 Apr 2020 18:49:26 +0000 (20:49 +0200)]
Tidy log/lin conversion functions.

4 years agoTidy inversefft2 method.
Carl Hetherington [Sun, 19 Apr 2020 18:27:24 +0000 (20:27 +0200)]
Tidy inversefft2 method.

4 years agoRemove timing and detail logging.
Carl Hetherington [Sat, 18 Apr 2020 23:17:09 +0000 (01:17 +0200)]
Remove timing and detail logging.

4 years agoRemove autotools and add waf build.
Carl Hetherington [Sat, 18 Apr 2020 22:51:47 +0000 (00:51 +0200)]
Remove autotools and add waf build.

4 years agoSplit up into a function that can take a functor to give samples.
Carl Hetherington [Sat, 18 Apr 2020 22:31:40 +0000 (00:31 +0200)]
Split up into a function that can take a functor to give samples.

4 years agoMore assorted tidying.
Carl Hetherington [Sat, 18 Apr 2020 22:14:33 +0000 (00:14 +0200)]
More assorted tidying.

4 years agoFix some indentation.
Carl Hetherington [Sat, 18 Apr 2020 22:11:46 +0000 (00:11 +0200)]
Fix some indentation.

4 years agoRemove unused function.
Carl Hetherington [Sat, 18 Apr 2020 22:10:59 +0000 (00:10 +0200)]
Remove unused function.

4 years agoSome function renaming and tidying.
Carl Hetherington [Sat, 18 Apr 2020 22:10:29 +0000 (00:10 +0200)]
Some function renaming and tidying.

4 years agoSome more stack allocation.
Carl Hetherington [Sat, 18 Apr 2020 22:06:38 +0000 (00:06 +0200)]
Some more stack allocation.

4 years agoAnother std::vector.
Carl Hetherington [Sat, 18 Apr 2020 22:04:04 +0000 (00:04 +0200)]
Another std::vector.

4 years agoUse std::vector more.
Carl Hetherington [Sat, 18 Apr 2020 21:49:01 +0000 (23:49 +0200)]
Use std::vector more.

4 years agoMore Sum tidying.
Carl Hetherington [Sat, 18 Apr 2020 21:41:14 +0000 (23:41 +0200)]
More Sum tidying.

4 years agoCalculate some things in Sum on the fly.
Carl Hetherington [Sat, 18 Apr 2020 21:38:52 +0000 (23:38 +0200)]
Calculate some things in Sum on the fly.

4 years agoTidying and move meanoverduation into Sum
Carl Hetherington [Sat, 18 Apr 2020 21:35:51 +0000 (23:35 +0200)]
Tidying and move meanoverduation into Sum

4 years agoCosmetic tweaks.
Carl Hetherington [Sat, 18 Apr 2020 21:31:51 +0000 (23:31 +0200)]
Cosmetic tweaks.

4 years agoVarious tidying to remove printf()s from calculate().
Carl Hetherington [Sat, 18 Apr 2020 21:28:25 +0000 (23:28 +0200)]
Various tidying to remove printf()s from calculate().

4 years agoTidy calculate parameter order.
Carl Hetherington [Sat, 18 Apr 2020 21:10:50 +0000 (23:10 +0200)]
Tidy calculate parameter order.

4 years agoTidy some parameter names.
Carl Hetherington [Sat, 18 Apr 2020 21:07:09 +0000 (23:07 +0200)]
Tidy some parameter names.

4 years agoSimilarly origpoints.
Carl Hetherington [Sat, 18 Apr 2020 21:03:36 +0000 (23:03 +0200)]
Similarly origpoints.

4 years agonumbershortperiods need not be passed through.
Carl Hetherington [Sat, 18 Apr 2020 21:02:11 +0000 (23:02 +0200)]
numbershortperiods need not be passed through.

4 years agoRename variable which enables timing.
Carl Hetherington [Sat, 18 Apr 2020 21:00:31 +0000 (23:00 +0200)]
Rename variable which enables timing.

4 years agoRename log flag variables and use bool.
Carl Hetherington [Sat, 18 Apr 2020 20:58:30 +0000 (22:58 +0200)]
Rename log flag variables and use bool.

4 years agoAnd samplingfreq.
Carl Hetherington [Sat, 18 Apr 2020 20:52:52 +0000 (22:52 +0200)]
And samplingfreq.

4 years agoSame with bitdepth.
Carl Hetherington [Sat, 18 Apr 2020 20:52:00 +0000 (22:52 +0200)]
Same with bitdepth.

4 years agobuffer_size_samples is calculated later.
Carl Hetherington [Sat, 18 Apr 2020 20:50:50 +0000 (22:50 +0200)]
buffer_size_samples is calculated later.

4 years agoUse some C++ arrays and delete some unused code.
Carl Hetherington [Sat, 18 Apr 2020 20:49:03 +0000 (22:49 +0200)]
Use some C++ arrays and delete some unused code.

4 years agoTidy up channel corrections a bit.
Carl Hetherington [Sat, 18 Apr 2020 20:43:57 +0000 (22:43 +0200)]
Tidy up channel corrections a bit.

4 years agoOpen sound file in calculate.
Carl Hetherington [Sat, 18 Apr 2020 20:36:39 +0000 (22:36 +0200)]
Open sound file in calculate.

4 years agoSame with shorttermaveragedarray.
Carl Hetherington [Sat, 18 Apr 2020 20:26:28 +0000 (22:26 +0200)]
Same with shorttermaveragedarray.

4 years agoSame with starttime.
Carl Hetherington [Sat, 18 Apr 2020 20:25:28 +0000 (22:25 +0200)]
Same with starttime.

4 years agoNo need to pass log FILE* through.
Carl Hetherington [Sat, 18 Apr 2020 20:23:45 +0000 (22:23 +0200)]
No need to pass log FILE* through.

4 years agoSplit calculation code into separate method.
Carl Hetherington [Sat, 18 Apr 2020 20:09:55 +0000 (22:09 +0200)]
Split calculation code into separate method.

4 years agoNo-op: reindent everything below main() and remove some blank lines.
Carl Hetherington [Sat, 18 Apr 2020 19:48:59 +0000 (21:48 +0200)]
No-op: reindent everything below main() and remove some blank lines.

4 years agoVariable name tidy up.
Carl Hetherington [Sat, 18 Apr 2020 19:45:02 +0000 (21:45 +0200)]
Variable name tidy up.

4 years agoMake Sum a class and move the mutex there.
Carl Hetherington [Sat, 18 Apr 2020 19:44:28 +0000 (21:44 +0200)]
Make Sum a class and move the mutex there.

4 years agoMake Worker a class.
Carl Hetherington [Sat, 18 Apr 2020 19:37:44 +0000 (21:37 +0200)]
Make Worker a class.

4 years agoMove more stuff into Worker and use std::thread
Carl Hetherington [Sat, 18 Apr 2020 19:36:43 +0000 (21:36 +0200)]
Move more stuff into Worker and use std::thread

4 years agoRename member variables of WorkerArgs to include a _ prefix.
Carl Hetherington [Sat, 18 Apr 2020 19:24:23 +0000 (21:24 +0200)]
Rename member variables of WorkerArgs to include a _ prefix.

4 years agoPartially C++-ify WorkerArgs.
Carl Hetherington [Sat, 18 Apr 2020 19:17:11 +0000 (21:17 +0200)]
Partially C++-ify WorkerArgs.

4 years agoC++-ification.
Carl Hetherington [Fri, 17 Apr 2020 22:32:24 +0000 (00:32 +0200)]
C++-ification.

4 years agoAdd frames pre-calculation.
Carl Hetherington [Fri, 17 Apr 2020 22:25:07 +0000 (00:25 +0200)]
Add frames pre-calculation.

4 years agoMore array C++-ification.
Carl Hetherington [Fri, 17 Apr 2020 22:23:19 +0000 (00:23 +0200)]
More array C++-ification.

4 years agoC++-ification of array declarations.
Carl Hetherington [Fri, 17 Apr 2020 22:13:21 +0000 (00:13 +0200)]
C++-ification of array declarations.

4 years agoMinimal move to building with C++
Carl Hetherington [Fri, 17 Apr 2020 22:06:57 +0000 (00:06 +0200)]
Minimal move to building with C++

4 years agoAdd primitive unit test.
Carl Hetherington [Fri, 17 Apr 2020 21:57:47 +0000 (23:57 +0200)]
Add primitive unit test.

4 years agoAdd .gitignore.
Carl Hetherington [Fri, 17 Apr 2020 21:56:42 +0000 (23:56 +0200)]
Add .gitignore.

4 years agoac* updates.
Carl Hetherington [Fri, 17 Apr 2020 21:56:08 +0000 (23:56 +0200)]
ac* updates.

5 years agoComment on the calculation of final offset master
Luca Trisciani [Fri, 22 Mar 2019 10:30:57 +0000 (11:30 +0100)]
Comment on the calculation of final offset

5 years agofix for longer file names / longer paths to file
lucat [Fri, 9 Nov 2018 00:22:46 +0000 (01:22 +0100)]
fix for longer file names / longer paths to file

5 years agofix for longer files name / paths to file
lucat [Fri, 9 Nov 2018 00:13:28 +0000 (01:13 +0100)]
fix for longer files name / paths to file

5 years agoFix line 218
Luca Trisciani [Mon, 5 Nov 2018 13:40:32 +0000 (14:40 +0100)]
Fix line 218

5 years agoUpdated year
Luca Trisciani [Mon, 5 Nov 2018 13:19:18 +0000 (14:19 +0100)]
Updated year

5 years agoChanged version to 0.18, added Leq(nW) switch
Luca Trisciani [Mon, 5 Nov 2018 11:09:21 +0000 (12:09 +0100)]
Changed version to 0.18, added Leq(nW) switch

5 years agoMerge branch 'master' of https://github.com/lucat/leqm-nrt
Luca Trisciani [Mon, 5 Nov 2018 10:13:27 +0000 (11:13 +0100)]
Merge branch 'master' of https://github.com/lucat/leqm-nrt
After correcting scaling due to wrong Test Signal

5 years agoChanges to link in Ubuntu 18.04 and similar
Luca Trisciani [Mon, 5 Nov 2018 10:11:39 +0000 (11:11 +0100)]
Changes to link in Ubuntu 18.04 and similar

5 years agoChange version to 0.18
lucat [Sat, 3 Nov 2018 01:07:52 +0000 (02:07 +0100)]
Change version to 0.18

5 years agoChanged Reference Level from -20dB RMS to -20bBFS
lucat [Sat, 3 Nov 2018 00:55:29 +0000 (01:55 +0100)]
Changed Reference Level from -20dB RMS to -20bBFS

6 years agoMemory leaks fixed.
Luca Trisciani [Fri, 23 Mar 2018 21:16:54 +0000 (22:16 +0100)]
Memory leaks fixed.

6 years agoSome minor changes
Luca Trisciani [Tue, 19 Dec 2017 23:47:35 +0000 (00:47 +0100)]
Some minor changes

6 years agoSome other preprocessor directives for windows
Luca Trisciani [Tue, 19 Dec 2017 23:06:29 +0000 (00:06 +0100)]
Some other preprocessor directives for windows

6 years agoSome preprocessor derectives for windows
Luca Trisciani [Tue, 19 Dec 2017 23:05:28 +0000 (00:05 +0100)]
Some preprocessor derectives for windows

6 years agoGeneral automake update
Luca Trisciani [Tue, 19 Dec 2017 22:25:28 +0000 (23:25 +0100)]
General automake update

6 years agoadded configure
Luca Trisciani [Wed, 13 Dec 2017 12:34:20 +0000 (13:34 +0100)]
added configure

6 years agoadded Makefile
Luca Trisciani [Wed, 13 Dec 2017 12:13:13 +0000 (13:13 +0100)]
added Makefile