From 8c2c5c67500beddf35fb7d3bde920d73d300e6c1 Mon Sep 17 00:00:00 2001 From: Eric Fontaine Date: Mon, 6 Dec 2021 23:28:09 -0500 Subject: [PATCH] allow compile AUDIO_BLOCK_SAMPLES = 4 or 8 --- effect_freeverb.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/effect_freeverb.cpp b/effect_freeverb.cpp index 90efdad42..464999002 100644 --- a/effect_freeverb.cpp +++ b/effect_freeverb.cpp @@ -97,7 +97,13 @@ static int16_t sat16(int32_t n, int rshift) { // TODO: move this to one of the data files, use in output_adat.cpp, output_tdm.cpp, etc static const audio_block_t zeroblock = { 0, 0, 0, { -0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +0, 0, 0, 0, +#if AUDIO_BLOCK_SAMPLES > 4 +0, 0, 0, 0, +#endif +#if AUDIO_BLOCK_SAMPLES > 8 +0, 0, 0, 0, 0, 0, 0, 0, +#endif #if AUDIO_BLOCK_SAMPLES > 16 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, #endif