Skip to content

Commit

Permalink
Merge pull request #421 from ericfont/freeverb-compile-4-8
Browse files Browse the repository at this point in the history
allow compile AUDIO_BLOCK_SAMPLES = 4 or 8
  • Loading branch information
PaulStoffregen committed Dec 7, 2021
2 parents d5697a7 + 8c2c5c6 commit 93acd10
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion effect_freeverb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93acd10

Please sign in to comment.