From 08200a161b7b000e6550da68dcd6988c84fa3e08 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Thu, 16 May 2002 06:39:13 +0000 Subject: [PATCH] differentiate between format max bps and reference codec max bps --- include/FLAC/format.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/FLAC/format.h b/include/FLAC/format.h index 2d75688..e368fc3 100644 --- a/include/FLAC/format.h +++ b/include/FLAC/format.h @@ -31,8 +31,14 @@ extern "C" { #define FLAC__MAX_BLOCK_SIZE (65535u) #define FLAC__MAX_CHANNELS (8u) #define FLAC__MIN_BITS_PER_SAMPLE (4u) -/*NOTE: only up to 24 because of the current predictor coefficient quantization and the fact we use FLAC__int32s for all work */ -#define FLAC__MAX_BITS_PER_SAMPLE (24u) +#define FLAC__MAX_BITS_PER_SAMPLE (32u) +/* + * NOTE: the above value is the limit of the FLAC format. However, the + * reference encoder/decoder is currently limited to 24 bits because of + * prevalent 32-bit math, so make sure and use the following value when + * appropriate: + */ +#define FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE (24u) /* the following is ((2 ** 16) - 1) * 10; see format.html as to why */ #define FLAC__MAX_SAMPLE_RATE (655350u) #define FLAC__MAX_LPC_ORDER (32u) -- 2.7.4