From d46a42391a8c64487bd43cdf3160535119baaa07 Mon Sep 17 00:00:00 2001 From: dan-giddins Date: Mon, 6 Nov 2023 15:59:34 +0000 Subject: [PATCH] Enable ladspa (#14) * removed msvc incompaptible plugins list * added Time.h and related changes * tweaked some cmake files * removed __attribute__ * defined M_PI in caps * minor fix in ladspa cmakelists * added namespace to Times.h * relocated includes * fixes to scripted-checks * deleted unnecessary whitespaces * added M_PI to cmt * Revert "relocated includes" This reverts commit 5fb6fba80b9b13634aee79f57187d18fae3a9042. * removed times.h and the other time files * addressing dom's comments 1 * addressing dom's concerns 2 * commented sys/time.h * another tweak to caps cmakelists * added caps init condition * attepted fix on calf plugins * fixup to mingw build * added __declspec(dllexport) * added init condition, Will this fix it? * temporary blacklist for ladspa plugins for testing * removed cmt from blacklist * added declspec in cmt * removed swh from blacklist * added _USE_MATH_DEFINES to swh * codefactor fix * added _USE_MATH_DEFINES to pitchscale.h * workaround to enable sinus_wavewrapper * Revert "workaround to enable sinus_wavewrapper" This reverts commit 227414766a6f19d5f28718d8007844b297e3f502. * fix to swh * removed the blacklist * added math defines to tap_utils.h * added math defines to calf primitives.h * added missing endif to calf's primitives.h * added math defines to biquad.h * tweak in calf to get it built * will it get fixed? * final patch to fix i guess * added declspec to tap * added the blacklist back in for calf * updated swh to upstream * updated cmt to master * pulled to cmt to master try 2 * remove blacklist + experimnt removing declspec tap * experiment replacing bind2nd with lambdas veal * removed functional.h in veal * checked out to ladspa branch * fixed veal * attempt fix at mac builds * Revert "attempt fix at mac builds" This reverts commit 7c6bbd25aa6b6906c579396a3611f5cf99c5be99. * added list-moreutils to build.yml * Attempt to fix MacOS builds * Fix typo * Formatting * Formatting (again) * addressed dom's pending comment * fixed build issues * CMake perl detection * Don't mandate cmake 3.12 because mingw * fixed broken unicode symbol in caps/basics.h * got rid of unnecessary __attribute__(s) * updated tap plugins to master * Fix older CMake versions * Update plugins/LadspaEffect/swh/CMakeLists.txt Co-authored-by: Dominic Clark * Update plugins/LadspaEffect/caps/CMakeLists.txt Co-authored-by: Dominic Clark * Update CMakeLists.txt Co-authored-by: Dominic Clark * disabled compiler flags for msvc * removed unnecessary cmake policies * attempt fix at build failure at swh if perl missin * attempt fix at build failure at swh if perl missin * attempt removal of basics.h include * whitespace changes * missed this change * reverted unnecessary set swh change * additional whitespace change which missed previous * attempt fix at x in basics.h * used lowercase x instead to fix broken utf char. * Revert "added caps init condition" This reverts commit dd89d21a6635f7ead353e766f093672fa7247a06. * added caps struct initialisation * comment * readded the seed() and formattings * fixed seed formatting again * redundant tabspace * fixed ambiguous comment in interface.cc * Update CMakeLists.txt --------- Co-authored-by: Ross maxx Co-authored-by: Rossmaxx <74815851+Rossmaxx@users.noreply.github.com> Co-authored-by: Tres Finocchiaro Co-authored-by: Dominic Clark --- plugins/LadspaEffect/caps/CMakeLists.txt | 2 +- plugins/LadspaEffect/caps/basics.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/LadspaEffect/caps/CMakeLists.txt b/plugins/LadspaEffect/caps/CMakeLists.txt index 456b2711a50..69480c32c46 100644 --- a/plugins/LadspaEffect/caps/CMakeLists.txt +++ b/plugins/LadspaEffect/caps/CMakeLists.txt @@ -8,7 +8,7 @@ ADD_DEFINITIONS(-DLMMS_BUILD_WIN64) ENDIF(LMMS_BUILD_WIN64) SET_TARGET_PROPERTIES(caps PROPERTIES PREFIX "") -IF (NOT MSVC) +IF(NOT MSVC) SET_TARGET_PROPERTIES(caps PROPERTIES COMPILE_FLAGS "-O2 -funroll-loops -Wno-write-strings") ENDIF() diff --git a/plugins/LadspaEffect/caps/basics.h b/plugins/LadspaEffect/caps/basics.h index 4a82ae93550..840cc743744 100644 --- a/plugins/LadspaEffect/caps/basics.h +++ b/plugins/LadspaEffect/caps/basics.h @@ -79,7 +79,7 @@ #define MIN_GAIN .000001 /* -120 dB */ -/* smallest non-denormal 32 bit IEEE float is 1.18*10-38 */ +/* smallest non-denormal 32 bit IEEE float is 1.18*10^-38 */ #define NOISE_FLOOR .00000000000005 /* -266 dB */ typedef int8_t int8;