diff --git a/tests/clap-first-example/CMakeLists.txt b/tests/clap-first-example/CMakeLists.txt index 45555803..0399fdac 100644 --- a/tests/clap-first-example/CMakeLists.txt +++ b/tests/clap-first-example/CMakeLists.txt @@ -2,7 +2,6 @@ project(clap-first-distortion) add_library(clap-first-distortion-base STATIC distortion_clap.cpp) target_link_libraries(clap-first-distortion-base PUBLIC clap) -target_compile_options(clap-first-distortion-base PRIVATE _USE_MATH_DEFINES=1) add_library(${PROJECT_NAME} MODULE distortion_clap_entry.cpp diff --git a/tests/clap-first-example/distortion_clap.cpp b/tests/clap-first-example/distortion_clap.cpp index 109fd4c2..d640da16 100644 --- a/tests/clap-first-example/distortion_clap.cpp +++ b/tests/clap-first-example/distortion_clap.cpp @@ -426,8 +426,8 @@ static clap_process_status c99dist_process(const struct clap_plugin *plugin, break; case FOLD: { - tl = sin(2.0 * M_PI * tl); - tr = sin(2.0 * M_PI * tr); + tl = sin(2.0 * 3.14159265 * tl); + tr = sin(2.0 * 3.14159265 * tr); } break; }