diff --git a/.gitignore b/.gitignore index 5b2a04f..9f50645 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,3 @@ build .cache subprojects/* !subprojects/*.wrap -src/noincl.hpp diff --git a/bin/main.cpp b/bin/main.cpp index 6b55657..057759c 100644 --- a/bin/main.cpp +++ b/bin/main.cpp @@ -9,7 +9,7 @@ auto main() -> int // Передается по ссылке и заполняется необходимыми данными hr::setup setup; setup.m_domain = hr::DOMAIN_PLUGIN::FREQUENSY; - setup.m_file = hr::TEST_SOUND; + setup.m_file = "./sin.wav"; auto r = hr::run(setup); hack::log()("size:", r.m_data.size()); diff --git a/bin/sin.wav b/bin/sin.wav new file mode 100644 index 0000000..fc4fa0d Binary files /dev/null and b/bin/sin.wav differ diff --git a/meson.build b/meson.build index 8c9f340..2681bc0 100644 --- a/meson.build +++ b/meson.build @@ -37,3 +37,9 @@ deps = [ subdir('src') subdir('bin') + +configure_file( + input: 'bin/sin.wav', + output: 'sin.wav', + copy: true +) diff --git a/src/harmonica.hpp b/src/harmonica.hpp index 55d9189..69e265b 100644 --- a/src/harmonica.hpp +++ b/src/harmonica.hpp @@ -87,8 +87,6 @@ namespace hr } while (read == setup.m_step_size); // Продолжать пока читаются полные блоки - hack::log()("adf"); - // Закрытие файла и возврат результата sf_close(file); return ad.get_result(); diff --git a/src/utils/var.hpp b/src/utils/var.hpp index 34348ab..b44dd7f 100644 --- a/src/utils/var.hpp +++ b/src/utils/var.hpp @@ -1,4 +1,3 @@ #pragma once -#include "noincl.hpp" // IWYU pragma: keep namespace hr { }