From 4978485ca5865a923068233f66f6323fde16c723 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Fri, 21 Jan 2022 15:36:44 -0500 Subject: [PATCH] add more audio cache, now that the display is eating up a lot of DMA time --- teensy/teensy-speaker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teensy/teensy-speaker.cpp b/teensy/teensy-speaker.cpp index 4d80712..5b3cf98 100644 --- a/teensy/teensy-speaker.cpp +++ b/teensy/teensy-speaker.cpp @@ -21,7 +21,7 @@ AudioConnection patchCord4(mixer1, 0, i2s, 0); // Ring buffer that we fill with 44.1kHz data #define BUFSIZE (4096) -#define CACHEMULTIPLIER 2 +#define CACHEMULTIPLIER 10 static volatile uint32_t bufIdx; // 0 .. BUFSIZE-1 static volatile uint64_t skippedSamples; // Who knows where this will // wind up