How Can I reduce the size of AudioTools library? #2143
-
Hi @pschatzmann I need to reduce the AudioTools library size, because my Flash is at 85%. I don't know if would be possible to remove or disable functions not used or similars. My board is a AudioKit A1S with ES8388 v2. I'm using MP3 and WAV codec, equalizer, metadata filter and basic functions to use the resources of board. I'd like to use then a forked library to adapt AudioTools to my project reducing it. Any idea? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
That's hard to believe: you have 4MB flash available! What partition scheme did you select ? With Rainmaker 4MB No OTA you get all flash available for your sketch, which should get you down to 30 % ps //# define USE_URL_ARDUINO This will avoid the include WiFi.h which should give you an additional 618076 bytes |
Beta Was this translation helpful? Give feedback.
-
try with
|
Beta Was this translation helpful? Give feedback.
That's hard to believe: you have 4MB flash available!
What partition scheme did you select ?
With Rainmaker 4MB No OTA you get all flash available for your sketch, which should get you down to 30 %
The other way to reduce the program size would be to remove some of your used functionality: mp3 (or Wifi) make a big difference ...
ps
If you are not using WiFi, you can comment out the following in AudioToolsConfig.h in the ESP32 section
//# define USE_URL_ARDUINO
//# define USE_AUDIO_SERVER
This will avoid the include WiFi.h which should give you an additional 618076 bytes