From 302d883f34864bc66a5e04532ae27d7e89fd94e8 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 09:31:13 +0100 Subject: style: Add 3-line descriptive headers to all source files This commit applies a new project-wide rule that every source file must begin with a concise 3-line comment header describing its purpose. - Updated CONTRIBUTING.md with the new rule. - Applied headers to all .cc and .h files in src/ and tools/. - Fixed various minor compilation errors and missing includes discovered during the header update process. --- tools/spectool.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/spectool.cc') diff --git a/tools/spectool.cc b/tools/spectool.cc index d2f4e54..e57e77b 100644 --- a/tools/spectool.cc +++ b/tools/spectool.cc @@ -1,3 +1,7 @@ +// This file is part of the 64k demo project. +// It implements the spectool for analyzing audio into spectrograms. +// Provides both 'analyze' and 'play' modes for spectral data. + #include "audio/audio.h" #include "audio/dct.h" #include "audio/synth.h" @@ -161,4 +165,4 @@ int main(int argc, char **argv) { } return 0; -} +} \ No newline at end of file -- cgit v1.2.3