Closed dl9sec closed 1 month ago
Did you read the README of the liblame and try to set USE_MEMORY_HACK to 0 ? You could also install an older core which uses less memory...
Hi Phil,
sure, you set this to 0 by default. Do you mean an ESP32 core?
Yes, the newer, the less memory you have available...
Ok, thanks. Tried it with 2.0.14 and it builds fine again. It's a pitty, that that newer versions of the ESP32 core a more and more hungry for memory and there is no possibility to take influence on that in the board parameters...
Anyhow, I would not recommend the combination of MP3 encoding and WIFI! This is somehow too close to the limits...
The WAV encoder does not need any memory at all and it is very efficient because we can just copy the data as is...
Yes, I am aware of the situation. Maybe I will go back from MP3 to WAV..
I found some big arrays that were statically allocated in liblame: pow43 and adj43 were using 32832 bytes! I changed them to be allocated on the heap (or PSRAM).
This should resolve the issue...
Oh wow, great stuff! Thank you so much for your effort. Builds perfect with ESP32 core 2.0.15 and RAM usage decreases a lot :-)
Problem Description
The example "streams-audiokit-webserver_mp3" doesn't build anymore and ends up with the error message:
Device Description
ESP32 AudioKit 2.2 A402
Sketch
Other Steps to Reproduce
auduino-audio-tools, arduino-audio-driver and arduino-liblame pulled yesterday evening from the repos.
What is your development environment
Arduino 1.8.19 with latest updates for LIBs and BSPs ESP32 Dev Module, PSRAM: "Enabled", Partition Scheme: "Huge APP ..."
I have checked existing issues, discussions and online documentation