From df8a579e4450f951246e609e031879efcbd78708 Mon Sep 17 00:00:00 2001 From: VoidX Date: Thu, 27 Jun 2024 18:06:52 +0200 Subject: [PATCH] CBF magic number --- .../ConvolutionBoxFormatConfigurationFile.cs | 5 +++++ docs/Format definitions/Convolution Box Format.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cavern.QuickEQ.Format/ConfigurationFile/ConvolutionBoxFormatConfigurationFile.cs b/Cavern.QuickEQ.Format/ConfigurationFile/ConvolutionBoxFormatConfigurationFile.cs index 6a78beb..8ae0840 100644 --- a/Cavern.QuickEQ.Format/ConfigurationFile/ConvolutionBoxFormatConfigurationFile.cs +++ b/Cavern.QuickEQ.Format/ConfigurationFile/ConvolutionBoxFormatConfigurationFile.cs @@ -49,5 +49,10 @@ void ValidateForExport() { } } } + + /// + /// CBFM marker. + /// + const int magicNumber = 0x4D464243; } } \ No newline at end of file diff --git a/docs/Format definitions/Convolution Box Format.md b/docs/Format definitions/Convolution Box Format.md index d4483be..9b63b0a 100644 --- a/docs/Format definitions/Convolution Box Format.md +++ b/docs/Format definitions/Convolution Box Format.md @@ -3,7 +3,7 @@ A file format for easy to implement DSP, only using channel copy and convolution filters. Channels are numbered from 0 to the number of system channels. Negative channel indices mean virtual channels, of which any number can be created. All values are little endian. -* 4 bytes: "CBFM" marker +* 4 bytes: "CBFM" marker (magic number: 0x4D464243) * 4 bytes: system sample rate, used for all convolutions * 4 bytes: number of filter entries