diff options
author | Martijn van Beurden <mvanb1@gmail.com> | 2022-07-01 07:36:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 07:36:48 +0200 |
commit | 633ab36ec51bada8737459e51cc54441544e63b2 (patch) | |
tree | 83fac30bee3a9b7b90539c382c66ca9980b73bae /include | |
parent | 10c0a5f610446d04c7e2794a0884acb22bb5859f (diff) | |
download | flac-633ab36ec51bada8737459e51cc54441544e63b2.tar.gz |
Small fixes needed for 32-bit capability (#379)
* Change replaygain analysis so it is able to handle 32-bit PCM
* Increase FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE to 32
* Fix switch-case fallthrough
Diffstat (limited to 'include')
-rw-r--r-- | include/FLAC/format.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/FLAC/format.h b/include/FLAC/format.h index 28eda599..3e8d7e55 100644 --- a/include/FLAC/format.h +++ b/include/FLAC/format.h @@ -113,13 +113,11 @@ extern "C" { /** The maximum sample resolution permitted by libFLAC. * - * \warning * FLAC__MAX_BITS_PER_SAMPLE 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 this value when - * appropriate. + * the reference encoder/decoder used to be limited to 24 bits. This + * value was used to signal that limit. */ -#define FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE (24u) +#define FLAC__REFERENCE_CODEC_MAX_BITS_PER_SAMPLE (32u) /** The maximum sample rate permitted by the format. The value is * ((2 ^ 16) - 1) * 10; see <A HREF="../format.html">FLAC format</A> |