This simple sketch results in the entire SdFat library being linked into the final binary:
These are the stats from compiling it:
Meanwhile without including Audio.h:
Is this expected? Why does Audio have a hard dependency on a filesystem?
Code:
#include <Audio.h>
void setup() {}
void loop() {}
These are the stats from compiling it:
Code:
Memory Usage on Teensy 4.1:
FLASH: code:48028, data:6088, headers:8344 free for files:8064004
RAM1: variables:8960, code:45224, padding:20312 free for local variables:449792
RAM2: variables:12416 free for malloc/new:511872
Code:
Memory Usage on Teensy 4.1:
FLASH: code:8932, data:3016, headers:8528 free for files:8105988
RAM1: variables:3808, code:6240, padding:26528 free for local variables:487712
RAM2: variables:12416 free for malloc/new:511872
Is this expected? Why does Audio have a hard dependency on a filesystem?