fix fft size

This commit is contained in:
2026-04-15 13:51:50 +03:00
parent 3afccda759
commit 39b62d6ccb
4 changed files with 6 additions and 5 deletions

View File

@@ -9,15 +9,16 @@ auto main() -> int
// Передается по ссылке и заполняется необходимыми данными
hr::setup setup;
setup.m_domain = hr::DOMAIN_PLUGIN::FREQUENSY;
setup.m_file = "./sin.wav";
setup.m_file = "/mnt/raid/projects/dsp/songs/base/MakSim: Знаешь ли ты?.mp3";
auto r = hr::run<hr::plugins::fft>(setup);
hack::log()("grad:", r.m_grad);
hack::log()("min:", r.m_min, "max:", r.m_max);
hack::log()("size:", r.m_size);
if (!r.empty())
{
for (auto& p : r.m_data)
hack::log()(p[0].m_values);
hack::log()(p[10].m_values);
}
}

View File

@@ -1,6 +1,6 @@
executable(
meson.project_name(),
'main.raw_data.cpp',
'main.fft.cpp',
dependencies : deps,
cpp_args: args,
include_directories : inc