ESP32-audioI2S icon indicating copy to clipboard operation
ESP32-audioI2S copied to clipboard

How to reduce library size?

Open AnatolyNevzoroff opened this issue 1 year ago • 3 comments

Great library! But very hard! The library takes up about 90% of the memory. I have never used and do not intend to use opus_decoder.h and vorbis_decoder.h. These decoders take up memory. How to exclude them from the library. If you use ESP32 only for radio, you can exclude flac_decoder.h, but how to do this? I know a project that uses your library without the specified decoders. The files: audio.cpp and audio.h are modified, but I can’t understand how this was done. Help me please!

AnatolyNevzoroff avatar Apr 11 '24 19:04 AnatolyNevzoroff

You probably mean the flash memory. Please try another partition table, such as "Huge App (3MB no OTA/ 1MB SPIFFS)"

schreibfaul1 avatar Apr 12 '24 02:04 schreibfaul1

Yes, I mean memory for recording a sketch. I understand that you will not exclude decoders just because “someone asked,” but it seems to me that sooner or later, such a need will still arise. Think about this question. The option you suggested does not suit me...

AnatolyNevzoroff avatar Apr 16 '24 00:04 AnatolyNevzoroff

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 16 '24 02:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 30 '24 02:05 github-actions[bot]