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. --- src/audio/dct.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/audio/dct.h') diff --git a/src/audio/dct.h b/src/audio/dct.h index 3e51884..b6b7126 100644 --- a/src/audio/dct.h +++ b/src/audio/dct.h @@ -1,6 +1,11 @@ +// This file is part of the 64k demo project. +// It defines constants and shared structures for DCT operations. +// The demo uses a 512-point DCT for spectral synthesis. + #pragma once #define DCT_SIZE 512 -void fdct_512(const float input[DCT_SIZE], float output[DCT_SIZE]); -void idct_512(const float input[DCT_SIZE], float output[DCT_SIZE]); +// Forward declarations +void fdct_512(const float *input, float *output); +void idct_512(const float *input, float *output); -- cgit v1.2.3