From 1713e0df7cfaa086ecb3967c5fd9a854022ba35c Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 14 Jul 2022 01:43:33 -0700 Subject: [PATCH] [FLAC Decoder] Change maximum buffer size This should be more correct, especially considering that the library can handle 32 bit files now. Signed-off-by: Christopher Snowhill --- Plugins/Flac/FlacDecoder.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Plugins/Flac/FlacDecoder.h b/Plugins/Flac/FlacDecoder.h index 417ce98ca..75fe1fb53 100644 --- a/Plugins/Flac/FlacDecoder.h +++ b/Plugins/Flac/FlacDecoder.h @@ -10,8 +10,7 @@ #import #define SAMPLES_PER_WRITE 512 -#define FLAC__MAX_SUPPORTED_CHANNELS 8 -#define SAMPLE_blockBuffer_SIZE ((FLAC__MAX_BLOCK_SIZE + SAMPLES_PER_WRITE) * FLAC__MAX_SUPPORTED_CHANNELS * (24 / 8)) +#define SAMPLE_blockBuffer_SIZE ((FLAC__MAX_BLOCK_SIZE + SAMPLES_PER_WRITE) * FLAC__MAX_CHANNELS * (FLAC__MAX_BITS_PER_SAMPLE / 8)) #import "Plugin.h"