fix file path

This commit is contained in:
2026-02-22 13:10:19 +03:00
parent 222a3a3aa5
commit d55b5e9d66
6 changed files with 7 additions and 5 deletions

1
.gitignore vendored
View File

@@ -2,4 +2,3 @@ build
.cache .cache
subprojects/* subprojects/*
!subprojects/*.wrap !subprojects/*.wrap
src/noincl.hpp

View File

@@ -9,7 +9,7 @@ auto main() -> int
// Передается по ссылке и заполняется необходимыми данными // Передается по ссылке и заполняется необходимыми данными
hr::setup setup; hr::setup setup;
setup.m_domain = hr::DOMAIN_PLUGIN::FREQUENSY; setup.m_domain = hr::DOMAIN_PLUGIN::FREQUENSY;
setup.m_file = hr::TEST_SOUND; setup.m_file = "./sin.wav";
auto r = hr::run<hr::plugins::magnitude>(setup); auto r = hr::run<hr::plugins::magnitude>(setup);
hack::log()("size:", r.m_data.size()); hack::log()("size:", r.m_data.size());

BIN
bin/sin.wav Normal file

Binary file not shown.

View File

@@ -37,3 +37,9 @@ deps = [
subdir('src') subdir('src')
subdir('bin') subdir('bin')
configure_file(
input: 'bin/sin.wav',
output: 'sin.wav',
copy: true
)

View File

@@ -87,8 +87,6 @@ namespace hr
} }
while (read == setup.m_step_size); // Продолжать пока читаются полные блоки while (read == setup.m_step_size); // Продолжать пока читаются полные блоки
hack::log()("adf");
// Закрытие файла и возврат результата // Закрытие файла и возврат результата
sf_close(file); sf_close(file);
return ad.get_result(); return ad.get_result();

View File

@@ -1,4 +1,3 @@
#pragma once #pragma once
#include "noincl.hpp" // IWYU pragma: keep
namespace hr { } namespace hr { }