summaryrefslogtreecommitdiff
path: root/tools/spectool.cpp
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-27 22:26:27 +0100
committerskal <pascal.massimino@gmail.com>2026-01-27 22:26:27 +0100
commit364d9e60e3c27cb131a598fe5f83deb74493319f (patch)
tree09d2dbb23f537bccad81b2c6ccdb25dd9b52ea46 /tools/spectool.cpp
parentf3a68c76a32c7467b0c9493e7f4cc16de2b2c227 (diff)
test(spectool): Add end-to-end test for analysis tool
Adds a new CTest unit test that performs a full, end-to-end verification of the 'spectool analyze' command. The test programmatically generates a sine wave, saves it as a .wav file, executes the spectool executable as a subprocess to analyze the wave, and then verifies the integrity of the resulting .spec file. This ensures the analysis pipeline (WAV decoding, windowing, FDCT, and file I/O) works correctly.
Diffstat (limited to 'tools/spectool.cpp')
-rw-r--r--tools/spectool.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/spectool.cpp b/tools/spectool.cpp
index 3b3d3aa..defb118 100644
--- a/tools/spectool.cpp
+++ b/tools/spectool.cpp
@@ -6,8 +6,6 @@
#include "platform.h"
#include "audio/audio.h"
-// Define MINIAUDIO_IMPLEMENTATION in one C/C++ file.
-#define MINIAUDIO_IMPLEMENTATION
#include "miniaudio.h"
#include <vector>