diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-27 22:22:24 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-27 22:22:24 +0100 |
| commit | f3a68c76a32c7467b0c9493e7f4cc16de2b2c227 (patch) | |
| tree | 9c56bf64555c3f04756848e77ff3ff4e68678d5c /CMakeLists.txt | |
| parent | ad4f87e0ebfd361c69c7ba9adc29292305f21f7c (diff) | |
feat(spectool): Add MP3 support for audio analysis
Leverages the built-in MP3 decoder in miniaudio to allow spectool's 'analyze' command to process .mp3 files in addition to .wav files.
Updates the tool's command-line help text and the project's HOWTO.md to reflect the new capability.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c9b8cad..7828ada 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,3 +59,21 @@ if(DEMO_BUILD_TESTS) ) add_test(NAME SynthEngineTest COMMAND test_synth) endif() + +option(DEMO_BUILD_TOOLS "Build tools" OFF) +if(DEMO_BUILD_TOOLS) + add_executable(spectool + tools/spectool.cpp + src/platform.cpp + src/audio/audio.cpp + src/audio/fdct.cpp + src/audio/idct.cpp + src/audio/window.cpp + src/audio/synth.cpp + ) + target_include_directories(spectool PRIVATE + src + third_party + ) + target_link_libraries(spectool PRIVATE glfw) +endif() |
